|
void
|
clear(WebElement element)
If the element at the payload is a text entry element, this will clear the value.
|
|
void
|
click(WebElement element)
Click the element at the payload.
|
|
void
|
destroyDriver()
|
|
WebElement
|
findElement(String id, String linkText, String partialLinkText, String name, String tagName, String xpathExpression, String className)
Find the first WebElement using the given method.
|
|
List<WebElement>
|
findElements(String id, String linkText, String partialLinkText, String name, String tagName, String xpathExpression, String className)
Find all elements within the current page using the given mechanism.
|
|
void
|
get(String url)
Load a new web page in the current browser window.
|
|
String
|
getAttribute(WebElement element, String name)
Get the value of a the given attribute of the element.
|
|
String
|
getCurrentUrl()
Get a string representing the current URL that the browser is looking at.
|
|
SeleniumWebDriver
|
getDriver()
|
|
Point
|
getLocation(WebElement element)
Where on the page is the top left-hand corner of the rendered element?
|
|
Dimension
|
getSize(WebElement element)
What is the width and height of the rendered element?
|
|
String
|
getTagName(WebElement element)
Get the tag name of this element.
|
|
String
|
getText(WebElement element)
Get the visible (i.e.
|
|
String
|
getTitle()
The title of the current page.
|
|
void
|
initDriver()
|
|
boolean
|
isDisplayed(WebElement element)
Is this element displayed or not? This method avoids the problem of having to parse an
element's "style" attribute.
|
|
boolean
|
isEnabled(WebElement element)
Is the element currently enabled or not? This will generally return true for everything but
disabled input elements.
|
|
boolean
|
isSelected(WebElement element)
Determine whether or not this element is selected or not.
|
|
void
|
sendKeys(WebElement element, String keys)
Use this method to simulate typing into an element, which may set its value.
|
|
void
|
setDriver(SeleniumWebDriver driver)
|
|
void
|
submit(WebElement element)
If the element at the payload is a form, or an element within a form, then this will be submitted to
the remote server.
|
|
void
|
until(long timeOutInSeconds, NestedProcessor conditional)
Wait until the condition is successful
|