Example usage for org.openqa.selenium WebDriverException WebDriverException

List of usage examples for org.openqa.selenium WebDriverException WebDriverException

Introduction

In this page you can find the example usage for org.openqa.selenium WebDriverException WebDriverException.

Prototype

public WebDriverException(String message, Throwable cause) 

Source Link

Usage

From source file:org.xwiki.test.ui.framework.elements.FormElement.java

License:Open Source License

public void fillFieldsByElements(Map<WebElement, String> valuesByElements) {
    for (WebElement el : valuesByElements.keySet()) {
        try {/*from   www  . jav  a  2  s .com*/
            setFieldValue(el, valuesByElements.get(el));
        } catch (Exception e) {
            throw new WebDriverException("Couldn't set field \"" + el.getAttribute("name") + "\" to value \""
                    + valuesByElements.get(el) + "\"", e);
        }
    }
}