Open ShaharGilad opened 3 years ago
Running the following code
const { By } = require('selenium-webdriver'); const { Builder } = require('@tpio/javascript-opensdk'); const { assert } = require('chai'); describe('search movie chrome', () => { let driver; before(async () => { driver = await new Builder().forBrowser('chrome').withToken(CONSTANT.TOKEN).build(); }); after(async () => { await driver.quit(); }); it('Check side bar option', async () => { await driver.get('https://www.youtube.com/'); await driver.findElement(By.linkText('Explore')).click(); const exploreTitle = await driver.findElement(By.id('destination-buttons')).isDisplayed(); assert.equal(exploreTitle,false); }); });
Results a fail in Mocha:
But passes in the Reports:
Running the following code
Results a fail in Mocha:
But passes in the Reports: