Open ShaharGilad opened 3 years ago
Running the following code:
describe.only('search youtube Edge', () => { let driver; before(async () => { driver = await new Builder().forBrowser('MicrosoftEdge').withToken(CONSTANT.TOKEN).build(); }); after(async () => { await driver.quit(); }); it('Search movie and take screenshot', async() => { await driver.get(CONSTANT.BASE_URL); await driver.findElement(By.id(CONSTANT.YOUTUBE_SEARCH_ID)).sendKeys(CONSTANT.SEARCH_VALUE); await driver.findElement(By.id(CONSTANT.SEARCH_BUTTON)).click(); await driver.report().step('Youtube result screenshot', 'Screenshot', true); }); });
await driver.report().step('Youtube result screenshot', 'Screenshot', true); Show the step without screenshot:
await driver.report().step('Youtube result screenshot', 'Screenshot', true);
Running the following code:
await driver.report().step('Youtube result screenshot', 'Screenshot', true);
Show the step without screenshot: