Java Code Examples for org.openqa.selenium.WebElement.toString()

The following are Jave code examples for showing how to use toString() of the org.openqa.selenium.WebElement class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: willtest   File: SeleniumEventListener.java   Source Code and License Vote up 4 votes
private String getElementSelector(WebElement webElement) {
    String elementIdentifier = webElement.toString();
    String selector = elementIdentifier.substring(elementIdentifier.indexOf("->"));
    return selector;
}