Open menehune23 opened 6 years ago
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.
How would I take a screenshot during a failure inside a piece of code like this?
Something like this will generate a screenshot, but it is of the main browser window (handle 0), not the new tab/window.