Open lusarz opened 3 years ago
Isn't it equivalent of browser.assert.elementPresent(".some-class"); ?
No, imagine HTML like:
<img src="img.jpg" alt="Girl with a jacket" class="some-class" />
and I want to check if it contains "alt" attribute:
browser.assert.attributePresent(".some-class", "alt");
I think I can prepare pull request for that
Hey @lusarz, can we use browser.expect.element(<selector>).to.have.attribute('attribute-name')
or am I missing something here?
Is your feature request related to a problem? Please describe. I'd like to check whether an attribute is present on element.
Describe the solution you'd like browser.assert.attributePresent('.some-link', 'href');