I’m currently trying out the javascript clients for testing an android app.
With wd I found the function “waitForElementById” to wait until an element is available.
As the webdriverio client seems better documented and is used in the getting started example I would like to give it a chance. But basically without a stable way to wait until I can actually interact with elements I don’t see any way how to get ANY test done.
I would think something like:
- Click button
- assert new activity is opened
- Do something there: for example entering text to a field
- assert that text was entered
is an absolute basic test case for any application (web, android, ios,…) so I can’t believe it isn’t available.
But for that its vital to wait for the element of 1. and 3. to be loaded, else any attempt to locate that element would fail the test (because it just isn’t there yet)
So: How to wait for an element with webdriverio?
As a side question: Is there any decent documentation on the javascript clients in conjunction with appium? I’m guessing my way for at least 3 days now.