New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
execute.then is not a function #1150
Comments
@tswaters yeah we are working on getting the website updated. In v4 all commands are synchronous if you are using wdio. |
You need to set the property
|
Any timeframe estimate on documentation? It is really frustrating as the code from the current docs simply doesn't work. |
We still have examples for standalone and wdio mode. It should be obvious which examples showing async and which is showing sync code. But we will get rid of all the async examples as we want that people use the wdio testrunner. |
Hi there, I have an example like this. console.log( "a" ); I use mocha runner. Is it a normal situation? |
I am facing same issue, is there a solution for this? |
I copied the example verbatim from here: http://webdriver.io/api/protocol/execute.html
I'm using mocha framework, firefox as the browser. baseUrl is a file:// reference pointing at a html file in my fixtures directory. This is an empty html page.
Here is the wdio.conf.js
And the test:
I was able to retrieve the value by reworking it to:
Are the docs out of date for this?
The text was updated successfully, but these errors were encountered: