Example usage for Java org.openqa.selenium WebElement fields, constructors, methods, implement or subclass
The text is from its open source code.
void | clear() If this element is a form entry element, this will reset its value. |
void | click() Click this element. |
WebElement | findElement(By by) Find the first WebElement using the given method. |
List | findElements(By by) Find all elements within the current context using the given mechanism. |
String | getAttribute(String name) Get the value of the given attribute of the element. |
String | getCssValue(String propertyName) Get the value of a given CSS property. |
Point | getLocation() Where on the page is the top left-hand corner of the rendered element? |
Rectangle | getRect() |
Dimension | getSize() What is the width and height of the rendered element? |
String | getTagName() Get the tag name of this element. |
String | getText() Get the visible (i.e. |
boolean | isDisplayed() Is this element displayed or not? |
boolean | isEnabled() Is the element currently enabled or not? |
boolean | isSelected() Determine whether or not this element is selected or not. |
void | sendKeys(CharSequence... keysToSend) Use this method to simulate typing into an element, which may set its value. |
void | submit() If this current element is a form, or an element within a form, then this will be submitted to the remote server. |