You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
Using Protractor 2.0.0, I am getting an error when accessing the DOM in a JasmineReporter after the last test. It looks like WebDriver.quit() is being called before the specDone event is called.
describe('Home Page',function(){beforeEach(function(){browser.get(browser.baseUrl);});it('should fail',function(){expect(true).toBe(false);});// it('should pass', function () {// expect(true).toBe(true);// });});
When running protractor as above, you will get an exception and protractor will crash. If you uncomment the last test, the first test fails as expected and the html is saved to a file.
In case it's not obvious, my goal is to grab the full html of the page when a spec fails, but that's not possible if the last test fails.
The text was updated successfully, but these errors were encountered:
Using Protractor 2.0.0, I am getting an error when accessing the DOM in a JasmineReporter after the last test. It looks like WebDriver.quit() is being called before the specDone event is called.
To reproduce, try the following code:
protractor.conf.js
bad-test.spec.js
When running protractor as above, you will get an exception and protractor will crash. If you uncomment the last test, the first test fails as expected and the html is saved to a file.
In case it's not obvious, my goal is to grab the full html of the page when a spec fails, but that's not possible if the last test fails.
The text was updated successfully, but these errors were encountered: