Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.6 KB

File metadata and controls

56 lines (38 loc) · 1.6 KB

selenium-webdriver

JavaScript language bindings for Selenium WebDriver. Selenium automates browsers for testing and web-based task automation.

Requires Node >= 20.

Installation

npm install selenium-webdriver

Quick Start

const { Builder, Browser } = require('selenium-webdriver')

;(async function example() {
  let driver = await new Builder().forBrowser(Browser.CHROME).build()
  try {
    await driver.get('https://www.selenium.dev')
    console.log(await driver.getTitle())
  } finally {
    await driver.quit()
  }
})()

Selenium Manager automatically handles browser driver installation — no manual driver setup required.

Documentation

Support

Contributing

Contributions are welcome via GitHub pull requests. See the source code for this binding.

Links

License

Licensed under the Apache License 2.0.