{"action":"created","issue":{"url":"https://api.github.com/repos/scrapy/scrapy/issues/1518","labels_url":"https://api.github.com/repos/scrapy/scrapy/issues/1518/labels{/name}","comments_url":"https://api.github.com/repos/scrapy/scrapy/issues/1518/comments","events_url":"https://api.github.com/repos/scrapy/scrapy/issues/1518/events","html_url":"https://github.com/scrapy/scrapy/pull/1518","id":109464462,"number":1518,"title":"FormRequest.from_response supports multiple forms instead of just the first matching form","user":{"login":"theresia","id":309867,"avatar_url":"https://avatars.githubusercontent.com/u/309867?v=3","gravatar_id":"","url":"https://api.github.com/users/theresia","html_url":"https://github.com/theresia","followers_url":"https://api.github.com/users/theresia/followers","following_url":"https://api.github.com/users/theresia/following{/other_user}","gists_url":"https://api.github.com/users/theresia/gists{/gist_id}","starred_url":"https://api.github.com/users/theresia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theresia/subscriptions","organizations_url":"https://api.github.com/users/theresia/orgs","repos_url":"https://api.github.com/users/theresia/repos","events_url":"https://api.github.com/users/theresia/events{/privacy}","received_events_url":"https://api.github.com/users/theresia/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-02T10:03:27Z","updated_at":"2015-10-05T14:21:43Z","closed_at":"2015-10-05T05:20:06Z","pull_request":{"url":"https://api.github.com/repos/scrapy/scrapy/pulls/1518","html_url":"https://github.com/scrapy/scrapy/pull/1518","diff_url":"https://github.com/scrapy/scrapy/pull/1518.diff","patch_url":"https://github.com/scrapy/scrapy/pull/1518.patch"},"body":"1. `_get_form` will return all forms matching `formxpath`, `formname`, and `formid` instead of just the first matching form.\r\n\r\n2. `from_response` collects and merges the `formdata` from all matching forms.\r\n\r\n3. added `tests/test_from_response_multiple_xpaths`\r\n\r\nCase found at https://us.topshop.com/webapp/wcs/stores/servlet/UserRegistrationForm?langId=-1&catalogId={catalogId}&storeId={storeId}\r\n\r\nDuring Guest Checkout, the page does a POST to one endpoint with `formdata` from two different forms with the same xpath: `//form[@action=\"ProcessDeliveryDetails\"]`"},"comment":{"url":"https://api.github.com/repos/scrapy/scrapy/issues/comments/145544072","html_url":"https://github.com/scrapy/scrapy/pull/1518#issuecomment-145544072","issue_url":"https://api.github.com/repos/scrapy/scrapy/issues/1518","id":145544072,"user":{"login":"dangra","id":37369,"avatar_url":"https://avatars.githubusercontent.com/u/37369?v=3","gravatar_id":"","url":"https://api.github.com/users/dangra","html_url":"https://github.com/dangra","followers_url":"https://api.github.com/users/dangra/followers","following_url":"https://api.github.com/users/dangra/following{/other_user}","gists_url":"https://api.github.com/users/dangra/gists{/gist_id}","starred_url":"https://api.github.com/users/dangra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dangra/subscriptions","organizations_url":"https://api.github.com/users/dangra/orgs","repos_url":"https://api.github.com/users/dangra/repos","events_url":"https://api.github.com/users/dangra/events{/privacy}","received_events_url":"https://api.github.com/users/dangra/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T14:21:43Z","updated_at":"2015-10-05T14:21:43Z","body":"@Youwotma that's a valid feature we are missing."}}