testproject-io / javascript-opensdk

TestProject OpenSDK for Node.js
Apache License 2.0
24 stars 16 forks source link

Failed build driver with .forBrowser('edge') #25

Closed ShaharGilad closed 3 years ago

ShaharGilad commented 3 years ago

Running the following code

const { By } = require('selenium-webdriver');
const { Builder } = require('@tpio/javascript-opensdk');
const { assert } = require('chai');

describe('search youtube edge', () => {
    let driver;

    before(async () => {
        driver = await new Builder().forBrowser('edge').withToken(CONSTANT.TOKEN).build();
    });

    after(async () => {
        await driver.quit(); 
    });

    it('Check side bar option', async () => {
        await driver.get(CONSTANT.BASE_URL);
        await driver.findElement(By.linkText('Explore')).click();
        const exploreTitle = await driver.findElement(By.id('destination-buttons')).isDisplayed();
        assert.equal(exploreTitle,false);
    });
});

Error display: image