Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

waitForMobileElVisible missing? #107

Open
jkwohlfahrt opened this issue Feb 5, 2018 · 3 comments
Open

waitForMobileElVisible missing? #107

jkwohlfahrt opened this issue Feb 5, 2018 · 3 comments

Comments

@jkwohlfahrt
Copy link

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
Copy link
Contributor

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

@oflorko
Copy link

oflorko commented Jun 12, 2018

@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
Copy link
Contributor

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

client.timeouts("implicit", 2000); 

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants