mlison/protractor-jasmine2-screenshot-reporter

Doesn't seem to work inside a new tab/window?

Opened this issue · 0 comments

How would I take a screenshot during a failure inside a piece of code like this?

browser.getAllWindowHandles().then(handles => {
  browser.switchTo().window(handles[1]);
  page.getSomeElement().click().then(() => fail());
});

Something like this will generate a screenshot, but it is of the main browser window (handle 0), not the new tab/window.