We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have created the following simple markup:
<form method="post" action="/test/create"> <button type="submit" >Save</button> <select name="sandwichselect" id="sandwichselect"> <option value="1">Sandwich</option> <option value="2">Better Sandwich</option> </select> <button type="submit" >Save</button> </form>
When I run the following simple test
$I->selectOption("form select[name='sandwichselect']", "1");
It fails with the following error:
InvalidArgumentException: Input "sandwichselect" cannot take "" as a value (possible values: 1, 2).
Removing the second submit button fixes the problem. I have tried using different names and Ids for the submit buttons, but that has not helped.
The text was updated successfully, but these errors were encountered:
Fix for Codeception#1304
20f7bb2
I believe this fix addresses the problem outline in Codeception#1304. Loop was matching against nodes incorrectly in the case of more than 1 submit.
Tests for Codeception#1304
9c35e81
Wrote two tests (select by text and select by CSS) for Codeception#1304
Merge pull request #1305 from fdjohnston/2.0
80dc8cb
Fix for #1304
A fix for this issue has been merged.
Sorry, something went wrong.
No branches or pull requests
I have created the following simple markup:
When I run the following simple test
It fails with the following error:
InvalidArgumentException: Input "sandwichselect" cannot take "" as a value (possible values: 1, 2).
Removing the second submit button fixes the problem.
I have tried using different names and Ids for the submit buttons, but that has not helped.
The text was updated successfully, but these errors were encountered: