TestArmada / nightwatch-extra

MIT License
30 stars 26 forks source link

waitForMobileElVisible missing? #107

Open jkwohlfahrt opened 6 years ago

jkwohlfahrt commented 6 years ago

I was reviewing the nightwatch-extra docs, and do not see a waitForMobileElVisible command. Is there one available that can be passed an accessibility id? I'll probably need to add a custom implementation if this is not available out of the box. Any help would be greatly appreciated. Thanks!

pschroeder89 commented 6 years ago

@jkwohlfahrt You can use "getMobileEl(using, selector, callback)". All of the custom commands wait for the element before interacting.

oflorko commented 6 years ago

@pschroeder89 thank you for reply. Could you please suggest how can I modify waiting for the element visible time? For instance I want to wait not longer then 2 seconds. Thanks!

archlichking commented 5 years ago

according to http://nightwatchjs.org/api/timeouts.html, you can do something like this

client.timeouts("implicit", 2000);