Is it possible to leave the test browser windows open after Angular Protractor tests run? I have a tough test failing in FireFox and it'd be useful to access the state of the web page to see what's going on.
Angular Team Announces End of Protractor Development By continuing to use Protractor, users may end up with disruptions in their automation scripts. However, the Protractor team has defined a timeline that gives users enough time to look into alternatives and migrate their tests accordingly.
For Angular apps, Protractor will wait until the Angular Zone stabilizes. This means long running async operations will block your test from continuing.
Protractor provides a method called maximize(), which helps the user to maximize the browser window. import { browser} from 'protractor' describe('Protractor Typescript Demo', function() { it('title verifications', function() { browser. get('https://angularjs.org/'); browser. manage().
You can use Protractor debug/pause feature to pause the e2e run which will ultimately leave the browser open: more info here
To do so, add this line on your protractor test before the failing one
browser.pause();
There is also a very useful tool called elementor that you may want to take a look later on.
browser.pause
no longer works with current Node v8.1.0, see here, but you could use browser.sleep(10000);
to keep the browser open for e.g. 10 seconds
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With