jest-environment-webdriver-sway-fork
v0.2.5
Published
Use Jest to run tests in Selenium WebDriver
Downloads
5
Readme
jest-environment-webdriver
Sway-specific fork of the project!
Connect Jest tests to Selenium WebDriver.
npm install --save-dev jest-environment-webdriver
Usage
Set testEnvironment
to jest-environment-webdriver
and select target browser using testEnvironmentOptions
:
"testEnvironment": "jest-environment-webdriver",
"testEnvironmentOptions": {
"browser": "safari"
}
Environment API
Next global objects and functions are available in testing code.
browser
— reference toWebDriver
instanceby
— alias toBy
element
— alias toDriver#findElement
element.all
— alias toDriver#findElements
until
— alias tountil
.