Skip to content

Instantly share code, notes, and snippets.

@giltayar
Created November 20, 2017 12:02
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 giltayar/fb5a89bd2e4d66ba6cb12001f817705c to your computer and use it in GitHub Desktop.
Save giltayar/fb5a89bd2e4d66ba6cb12001f817705c to your computer and use it in GitHub Desktop.
const {Builder, By, Key, until} = require('selenium-webdriver');
let driver = new Builder()
.forBrowser('firefox')
.build();
driver.get('http://www.google.com/ncr');
driver.findElement(By.name('q')).sendKeys('webdriver', Key.RETURN);
driver.wait(until.titleIs('webdriver - Google Search'), 1000);
driver.quit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment