{"action":"created","issue":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/1795","labels_url":"https://api.github.com/repos/Codeception/Codeception/issues/1795/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/Codeception/issues/1795/comments","events_url":"https://api.github.com/repos/Codeception/Codeception/issues/1795/events","html_url":"https://github.com/Codeception/Codeception/pull/1795","id":63281195,"number":1795,"title":"Added seeInFormFields for Web tests","user":{"login":"zbateson","id":8356974,"avatar_url":"https://avatars.githubusercontent.com/u/8356974?v=3","gravatar_id":"","url":"https://api.github.com/users/zbateson","html_url":"https://github.com/zbateson","followers_url":"https://api.github.com/users/zbateson/followers","following_url":"https://api.github.com/users/zbateson/following{/other_user}","gists_url":"https://api.github.com/users/zbateson/gists{/gist_id}","starred_url":"https://api.github.com/users/zbateson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbateson/subscriptions","organizations_url":"https://api.github.com/users/zbateson/orgs","repos_url":"https://api.github.com/users/zbateson/repos","events_url":"https://api.github.com/users/zbateson/events{/privacy}","received_events_url":"https://api.github.com/users/zbateson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Codeception/Codeception/labels/enhancement","name":"enhancement","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-20T18:43:40Z","updated_at":"2015-03-22T23:33:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Codeception/Codeception/pulls/1795","html_url":"https://github.com/Codeception/Codeception/pull/1795","diff_url":"https://github.com/Codeception/Codeception/pull/1795.diff","patch_url":"https://github.com/Codeception/Codeception/pull/1795.patch"},"body":"Allows quickly checking multiple form field values with an array with InnerBrowser and WebDriver.\r\n\r\nAlso updated seeInField functionality to allow comparing an empty value to an unselected combo box.\r\n\r\nCreated simple tests and updated documentation in Interfaces/Web.php (IIRC that's the only place needed? Let me know if otherwise.)\r\n\r\nExample:\r\n\r\n```php\r\n$I->seeInFormFields('#myform', [\r\n    'checkbox[]' => [\r\n        'see test one',\r\n        'see test two',\r\n    ],\r\n    'radio1' => 'see test one',\r\n    'checkbox1' => true,\r\n    'checkbox2' => false,\r\n    'select1' => 'see test one',\r\n    'select2' => [\r\n        'see test one',\r\n        'see test two',\r\n        'see test three'\r\n    ]\r\n]);\r\n```\r\nCan be paired with submitForm for easy testing:\r\n\r\n```php\r\n$form = [\r\n     'field1' => 'value',\r\n     'field2' => 'another value',\r\n     'checkbox1' => true,\r\n     // ...\r\n];\r\n$I->submitForm('#my-form', $form, 'submitButton');\r\n$I->seeInFormFields('#my-form', $form);\r\n```"},"comment":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/comments/84732812","html_url":"https://github.com/Codeception/Codeception/pull/1795#issuecomment-84732812","issue_url":"https://api.github.com/repos/Codeception/Codeception/issues/1795","id":84732812,"user":{"login":"DavertMik","id":220264,"avatar_url":"https://avatars.githubusercontent.com/u/220264?v=3","gravatar_id":"","url":"https://api.github.com/users/DavertMik","html_url":"https://github.com/DavertMik","followers_url":"https://api.github.com/users/DavertMik/followers","following_url":"https://api.github.com/users/DavertMik/following{/other_user}","gists_url":"https://api.github.com/users/DavertMik/gists{/gist_id}","starred_url":"https://api.github.com/users/DavertMik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavertMik/subscriptions","organizations_url":"https://api.github.com/users/DavertMik/orgs","repos_url":"https://api.github.com/users/DavertMik/repos","events_url":"https://api.github.com/users/DavertMik/events{/privacy}","received_events_url":"https://api.github.com/users/DavertMik/received_events","type":"User","site_admin":false},"created_at":"2015-03-22T23:33:17Z","updated_at":"2015-03-22T23:33:17Z","body":"This looks awesome, thank you!"}}