jest-environment-webdriver
Connect Jest tests to Selenium WebDriver.
npm install --save-dev jest-environment-webdriver
Limitations
The project is in progress. It only supports running preinstalled WebDrivers (Chrome, Safari, Firefox, Edge, IE) without additional options. Capabilities configuration, screenshots report will be added soon.
Usage
Set testEnvironment
to jest-environment-webdriver
.
Select target browser using testEnvironmentOptions
:
"testEnvironmentOptions": {
"browser": "safari"
}
Environment API
Next global objects and functions are available in testing code.