-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Async/await and browser.pause not working - workaround ? #4184
Comments
I am having similar problems with browser.pause() not working with version 5.1.1. A workaround I'm doing is just using browser.sleep() with a very long timeout. |
I think this is a quite pressing problem. As noted on gitter today: "the strange situation with protractor is that you can either write easy code (with async/await) that is hard to debug or dificult code (with promises/callbacks) that is easy to debug." (because of this issue) |
I updated today to 5.1.1 and have problems with |
@tiagomsmagalhaes Are you using async/await in your code with "SELENIUM_PROMISE_MANAGER: false" as noted in the documentation? What version of node are you using ? |
@xnnkmd nope. node version is 6.10.1. I'm working with AngularJS so I suppose i don't need that (??) |
I updated the async/await example example to show how you might write tests in TypeScript and debug them with Chrome's devtools. Note that you'll need Node v7 for sourcemaps to work. |
I am using Async/await with SELENIUM_PROMISE_MANAGER set to false as noted by this great example by @sjelin
It seems to work except that browser.pause and browser.debugger fails to work (shows pause/debugger info on the screen but test terminates without pausing). Is that a known problem and/or is there a workaround ?
The text was updated successfully, but these errors were encountered: