{"action":"closed","issue":{"url":"https://api.github.com/repos/lorien/grab/issues/278","repository_url":"https://api.github.com/repos/lorien/grab","labels_url":"https://api.github.com/repos/lorien/grab/issues/278/labels{/name}","comments_url":"https://api.github.com/repos/lorien/grab/issues/278/comments","events_url":"https://api.github.com/repos/lorien/grab/issues/278/events","html_url":"https://github.com/lorien/grab/issues/278","id":253157695,"number":278,"title":"broken methods grab.doc.set_input_by_xpath || set_input_by_id || set_input","user":{"login":"Yrij-Zhavoronkov","id":12384490,"avatar_url":"https://avatars0.githubusercontent.com/u/12384490?v=4","gravatar_id":"","url":"https://api.github.com/users/Yrij-Zhavoronkov","html_url":"https://github.com/Yrij-Zhavoronkov","followers_url":"https://api.github.com/users/Yrij-Zhavoronkov/followers","following_url":"https://api.github.com/users/Yrij-Zhavoronkov/following{/other_user}","gists_url":"https://api.github.com/users/Yrij-Zhavoronkov/gists{/gist_id}","starred_url":"https://api.github.com/users/Yrij-Zhavoronkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yrij-Zhavoronkov/subscriptions","organizations_url":"https://api.github.com/users/Yrij-Zhavoronkov/orgs","repos_url":"https://api.github.com/users/Yrij-Zhavoronkov/repos","events_url":"https://api.github.com/users/Yrij-Zhavoronkov/events{/privacy}","received_events_url":"https://api.github.com/users/Yrij-Zhavoronkov/received_events","type":"User","site_admin":false},"labels":[{"id":38016397,"url":"https://api.github.com/repos/lorien/grab/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-08-27T11:24:28Z","updated_at":"2018-05-03T21:19:37Z","closed_at":"2018-05-03T21:19:37Z","author_association":"NONE","body":"Код формы без js (Code of form without js): \r\n```\r\n<form name=\"login\" action=....>\r\n...\r\n<fieldset>\r\n<dl>\r\n<input type=\"text\" ..  id=\"user-email\" name=\"user_name\" />`\r\n<input type=\"password\" ..id=\"user-password\" name=\"user_pass\" />\r\n....\r\n\r\n```\r\n**Пробуем (try):** grab.doc.set_input('user_name', '...') == KeyError: \"No input element with the name 'user_name'\"\r\n**Пробуем (try)::** grab.doc.set_input_by_id('user-email', '...') == KeyError: \"No input element with the name 'user_name'\" == DataNotFound: Could not get first item for .//*[@id=\"user-email\"] query of class XpathSelector\r\n**Пробуем (try)::** grab.doc.set_input_by_xpath('//input[@id=\"user-email\"]', '...') == AttributeError: 'NoneType' object has no attribute 'tag'\r\n\r\nВыбор формы вручную эффекта не дал (manual select of form element ... not effect): grab.doc.choose_form_by_element('//form[@name=\"login\"]')\r\n\r\n\r\n"}}
{"actor":{"display_login":"lorien"}}