Re: [nightwatchjs] How to wait until button is enabled in Nightwatch js

344 views
Skip to first unread message

David Linse

unread,
Jan 4, 2019, 1:51:41 PM1/4/19
to nightw...@googlegroups.com
maybe you'll have to wait for your condition after a certain action as the commands are executed as fast as possible.

it is hard to tell what's going wrong without some (error) logging, some further sample code or an url to reproduce. 

maybe you could provide some of these ?

regards
~david

On Fri, Jan 4, 2019, 2:33 PM Luiz Miranda <luiz.g....@gmail.com> wrote:

Hi,


I would like to know, how to check the button is enabled or disabled?

Because in my application after some action the button will enabled or disabled.


Test:

browser.expect.element('input[id=campo_pesquisa]').to.not.be.enabled 


But using the above code, it is saying that button is enabled when it is disabled.



--
You received this message because you are subscribed to the Google Groups "NightwatchJs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nightwatchjs...@googlegroups.com.
To post to this group, send email to nightw...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nightwatchjs/144521eb-175d-422a-9f28-d5603f7a1834%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages