{"action":"created","issue":{"url":"https://api.github.com/repos/sparklemotion/mechanize/issues/444","labels_url":"https://api.github.com/repos/sparklemotion/mechanize/issues/444/labels{/name}","comments_url":"https://api.github.com/repos/sparklemotion/mechanize/issues/444/comments","events_url":"https://api.github.com/repos/sparklemotion/mechanize/issues/444/events","html_url":"https://github.com/sparklemotion/mechanize/issues/444","id":106756556,"number":444,"title":"Page#form_with crashes when using :search option","user":{"login":"raphinesse","id":1006620,"avatar_url":"https://avatars.githubusercontent.com/u/1006620?v=3","gravatar_id":"","url":"https://api.github.com/users/raphinesse","html_url":"https://github.com/raphinesse","followers_url":"https://api.github.com/users/raphinesse/followers","following_url":"https://api.github.com/users/raphinesse/following{/other_user}","gists_url":"https://api.github.com/users/raphinesse/gists{/gist_id}","starred_url":"https://api.github.com/users/raphinesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphinesse/subscriptions","organizations_url":"https://api.github.com/users/raphinesse/orgs","repos_url":"https://api.github.com/users/raphinesse/repos","events_url":"https://api.github.com/users/raphinesse/events{/privacy}","received_events_url":"https://api.github.com/users/raphinesse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-16T11:46:26Z","updated_at":"2015-09-17T10:12:15Z","closed_at":null,"body":"Having fetched a page into the variable `page`, the following error is thrown when trying to query forms in the page. The trace should have all other relevant information.\r\n\r\n```\r\nirb(main):019:0> page.form_with(:search => '.foo form')\r\nNoMethodError: undefined method `node' for #<Mechanize::Form:0x3936ca8>\r\n        from C:/Software/Ruby21/lib/ruby/gems/2.1.0/gems/mechanize-2.7.3/lib/mechanize/form.rb:217:in `method_missing'\r\n        from (eval):40:in `block in select_forms'\r\n        from (eval):39:in `each'\r\n        from (eval):39:in `find_all'\r\n        from (eval):39:in `select_forms'\r\n        from (eval):12:in `forms_with'\r\n        from (eval):22:in `form_with'\r\n        from (irb):19\r\n        from C:/Software/Ruby21/bin/irb:11:in `<main>'\r\n```\r\n\r\nFor your convenience: [The crash location](https://github.com/sparklemotion/mechanize/blob/v2.7.3/lib/mechanize/element_matcher.rb#L44)"},"comment":{"url":"https://api.github.com/repos/sparklemotion/mechanize/issues/comments/141035151","html_url":"https://github.com/sparklemotion/mechanize/issues/444#issuecomment-141035151","issue_url":"https://api.github.com/repos/sparklemotion/mechanize/issues/444","id":141035151,"user":{"login":"xuxiangyang","id":4926529,"avatar_url":"https://avatars.githubusercontent.com/u/4926529?v=3","gravatar_id":"","url":"https://api.github.com/users/xuxiangyang","html_url":"https://github.com/xuxiangyang","followers_url":"https://api.github.com/users/xuxiangyang/followers","following_url":"https://api.github.com/users/xuxiangyang/following{/other_user}","gists_url":"https://api.github.com/users/xuxiangyang/gists{/gist_id}","starred_url":"https://api.github.com/users/xuxiangyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuxiangyang/subscriptions","organizations_url":"https://api.github.com/users/xuxiangyang/orgs","repos_url":"https://api.github.com/users/xuxiangyang/repos","events_url":"https://api.github.com/users/xuxiangyang/events{/privacy}","received_events_url":"https://api.github.com/users/xuxiangyang/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T10:12:15Z","updated_at":"2015-09-17T10:12:15Z","body":"try to use xpath with search?"}}