For better debugging of Protractor tests, you can take advantage of _____ to take a screenshot of the browser's state when a test fails.

  • afterEach
  • browser.driver
  • jasmine.getEnv().addReporter
  • onPrepare
To take a screenshot of the browser's state when a test fails in Protractor, you can use the afterEach function, which is executed after each test spec.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *