nightwatchjs / nightwatch

Integrated end-to-end testing framework written in Node.js and using W3C Webdriver API. Developed at @browserstack
https://nightwatchjs.org
MIT License
11.83k stars 1.32k forks source link

expect has value #1983

Closed dhiegohenrique closed 5 years ago

dhiegohenrique commented 5 years ago

I have the following verification: .assert.ok (text.length, 'Has tool tip content')

I wonder if there's any way to change that for an expect. Something like:

.expect.element (xpathTooltip) .text.to.not.be.undefined

Does anyone know if this exists? thankful

beatfactor commented 5 years ago

Please use the Mailing List or StackOverflow to ask for assistance. The GitHub Issues list is meant for submitting bugs and feature requests.