public class JavaScriptErrorCollector extends Object
Modifier and Type | Field and Description |
---|---|
protected org.openqa.selenium.WebDriver |
driver |
Constructor and Description |
---|
JavaScriptErrorCollector(org.openqa.selenium.WebDriver driver) |
Modifier and Type | Method and Description |
---|---|
void |
checkForErrors()
Throws an
AssertionError when JavaScript errors are detected on current page. |
protected final org.openqa.selenium.WebDriver driver
public JavaScriptErrorCollector(org.openqa.selenium.WebDriver driver)
public void checkForErrors()
AssertionError
when JavaScript errors are detected on current page.Copyright © 2017 Nuxeo. All rights reserved.