A plugin for unexpected that adds assertions for the
official WebDriver bindings
from the Selenium project.
<WebElement> to exist
<WebElement> to be visible
<WebElement> to contain text <string+|regexp>
<WebElement> to contain html <string+|regexp>
<WebElement> [not] to have attribute <string>
<WebElement> to have attribute <string> <string>
screenshots: Directory path, used to take a screenshot whenever a assertion fails.
const webdriver = ;
const expect = ;
const driver = ;
const el = driver;
Thanks to Bowery Boogie for their permission to use the photo of Rickshaw Spidey performing his unexpected moves.