Скриншот
const assert = require('assert')
describe('v5.webdriver.io', () => {
it('should save a screenshot of the browser view', async () => {
await browser.url('https://v5.webdriver.io');
const GitHub = await $('#footer [href="https://github.com/webdriverio/webdriverio"]')
await GitHub.saveScreenshot('.Githubscreenshot.png');
})
})
Vivacious Vicuña