-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Do not rely on WebDriver control flow for internal Synchronization #3689
Comments
I'm currently using async/await and I have some strange issues that might be related to this:
I never experienced these issues before I started using async/await and since I read here that there are some problems with async/await, it might all be related to it. What do you think? btw, I'm on windows 10 and node 6.8.0 |
Are you using |
Since Typescript is adding async/await support in 2.1 due this month, it might be best to hold off on this issue. async/await code will be a much simpler diff coming from this serialized, managed promise world. |
We can't use |
@sjelin 99% async/await. I try to remove the other 1% and try again |
the |
It also added the ability to target ES2015, so your async/await will just |
The problems with |
wow, WebStorm now supports protractor out of the box and debugging works like a charm, especially with everything async. btw, upgrading to nodejs 7 resolved the debugger detach problem. |
Blocked on #3884 |
Closed in favor of everything in |
What is the status of async/await support. There are several great examples provided by @sjelin that seems to indicate it works with SELENIUM_PROMISE_MANAGER=false but it is unclear how much trouble one might get into now if using (only) async/await ? |
@xnnkmd I can tell you that my experience so far with async/await has been pretty good. I've been switching all of our tests over the last couple of weeks to use async/await instead of |
@afterbangx Thanks a lot for sharing your experience. I am also very keen on using async/await. Did run into a n initial issue though, which is that browser.pause does not work (#4184). So with async/await tests will be a bit harder to debug/diagnose (but easier to write/read). What kinks did you run into ? |
As per SeleniumHQ/selenium#2969, the web driver control flow is going away. Internally, this means functions like
browser.get
need to be changed slightly to work via promise chaining instead of needing the control flow.The text was updated successfully, but these errors were encountered: