public class JavaScriptErrorCollector extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JavaScriptErrorCollector.JavaScriptErrorIgnoreRule |
Modifier and Type | Field and Description |
---|---|
protected org.openqa.selenium.WebDriver |
driver |
protected List<JavaScriptErrorCollector.JavaScriptErrorIgnoreRule> |
ignores |
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. |
static JavaScriptErrorCollector |
from(org.openqa.selenium.WebDriver driver) |
JavaScriptErrorCollector |
ignore(JavaScriptErrorCollector.JavaScriptErrorIgnoreRule... ignores) |
protected final org.openqa.selenium.WebDriver driver
protected List<JavaScriptErrorCollector.JavaScriptErrorIgnoreRule> ignores
public JavaScriptErrorCollector(org.openqa.selenium.WebDriver driver)
public static JavaScriptErrorCollector from(org.openqa.selenium.WebDriver driver)
public JavaScriptErrorCollector ignore(JavaScriptErrorCollector.JavaScriptErrorIgnoreRule... ignores)
public void checkForErrors()
AssertionError
when JavaScript errors are detected on current page.Copyright © 2019 Nuxeo. All rights reserved.