node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »



npm version build status dependency status

Webdriver manager and helper for WordPress. Most of the good stuff were shamelessly copied from wp-e2e-tests. Thanks to wp-e2e-tests authors and contributors for providing the foundation!

This package provides WebDriver manager and helper to help you test WordPress site.

By default, this package uses chromedriver, but you can optionally install other drivers such as geckodriver or use remote webdriver via Sauce Labs.


npm install wp-e2e-webdriver


import { By } from 'selenium-webdriver';
import { WebDriverManager, WebDriverHelper as helper } from 'wp-e2e-webdriver'
const manager = new WebDriverManager( 'chrome' );
const driver = manager.getDriver();
driver.get( '' );
    By.css( '#content' )



The reason we pulled out manager and helper from wp-e2e-tests so that following dependents can use that:

  • wp-e2e-page-objects — Repo will be published later. WordPress Page Objects package
  • wc-e2e-page-objects — WooCommerce Page Objects package
  • WordPress plugin or WooCommerce extensions that will have e2e tests that use wp-e2e-page-objects or wc-e2e-page-objects.