Skip to content

Instantly share code, notes, and snippets.

@dannyshain
Created June 18, 2021 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dannyshain/49a3e52c505d8db5fbedb37611fa6c9c to your computer and use it in GitHub Desktop.
Save dannyshain/49a3e52c505d8db5fbedb37611fa6c9c to your computer and use it in GitHub Desktop.
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