Created
June 18, 2021 20:01
-
-
Save dannyshain/49a3e52c505d8db5fbedb37611fa6c9c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { Builder, By } = require('selenium-webdriver'); | |
const chrome = require('selenium-webdriver/chrome'); | |
const assert = require('assert'); | |
describe('DemoApp - ClassicRunner', function () { | |
it('Smoke Test', async () => { | |
const driver = await new Builder() | |
.forBrowser('chrome') | |
.setChromeOptions(new chrome.Options()) | |
.build(); | |
await driver.get('https://kitchen.applitools.com/ingredients/select'); | |
await driver.findElement(By.id('spices-select-single')).click(); | |
await driver.findElement(By.css("#spices-select-single [value='garlic']")).click(); | |
assert.equal(await driver.findElement(By.id('spices-select-single')).getAttribute('value'), 'garlic'); | |
await driver.quit(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment