Java org.openqa.selenium WebElement fields, constructors, methods, implement or subclass

Example usage for Java org.openqa.selenium WebElement fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.openqa.selenium WebElement.

The text is from its open source code.

Implementation

org.openqa.selenium.WebElement has the following implementations.
Click this link to see all its implementation.

Method

voidclear()
If this element is a form entry element, this will reset its value.
voidclick()
Click this element.
WebElementfindElement(By by)
Find the first WebElement using the given method.
ListfindElements(By by)
Find all elements within the current context using the given mechanism.
StringgetAttribute(String name)
Get the value of the given attribute of the element.
StringgetCssValue(String propertyName)
Get the value of a given CSS property.
PointgetLocation()
Where on the page is the top left-hand corner of the rendered element?
RectanglegetRect()
DimensiongetSize()
What is the width and height of the rendered element?
StringgetTagName()
Get the tag name of this element.
StringgetText()
Get the visible (i.e.
booleanisDisplayed()
Is this element displayed or not?
booleanisEnabled()
Is the element currently enabled or not?
booleanisSelected()
Determine whether or not this element is selected or not.
voidsendKeys(CharSequence... keysToSend)
Use this method to simulate typing into an element, which may set its value.
voidsubmit()
If this current element is a form, or an element within a form, then this will be submitted to the remote server.