Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
const {Builder, By, Key, until} = require('selenium-webdriver');
async function main() {
let driver = await new Builder()
await driver.get('')
const element = await driver.findElement('q'))
await element.sendKeys('webdriver', Key.RETURN)
await driver.wait(until.titleIs('webdriver - Google Search'), 1000)
await driver.quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.