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
assertValue()
value
Recently I realised assertValue() can be used with any element, even those that don't support the value attribute.
// <div class="foo">bar</div> $browser->assertValue('.foo', ''); // Will always be true $browser->assertValue('.foo', 'bar'); // Will always be false
Should there be a check that assertValue() is being called on an element that supports the value attribute?
These are the 7 elements which support the value attribute (source):
button
input
li
meter
option
progress
param
Happy to put together a PR if this is something you are interested in rectifying.
The text was updated successfully, but these errors were encountered:
Hmm, yeah I think so. Feel free to PR 👍
Sorry, something went wrong.
No branches or pull requests
Description:
Recently I realised
assertValue()
can be used with any element, even those that don't support thevalue
attribute.Should there be a check that
assertValue()
is being called on an element that supports thevalue
attribute?These are the 7 elements which support the
value
attribute (source):button
input
li
meter
option
progress
param
Happy to put together a PR if this is something you are interested in rectifying.
The text was updated successfully, but these errors were encountered: