Uses of Interface
org.openqa.selenium.WebElement
-
Packages that use WebElement Package Description org.openqa.selenium org.openqa.selenium.interactions org.openqa.selenium.interactions.internal org.openqa.selenium.interactions.touch -
-
Uses of WebElement in org.openqa.selenium
Methods in org.openqa.selenium that return WebElement Modifier and Type Method Description WebElement
WebDriver.TargetLocator. activeElement()
Switches to the element that currently has focus within the document currently "switched to", or the body element if this cannot be detected.WebElement
By. findElement(SearchContext context)
Find a single element.WebElement
SearchContext. findElement(By by)
Find the firstWebElement
using the given method.WebElement
WebDriver. findElement(By by)
Find the firstWebElement
using the given method.WebElement
WebElement. findElement(By by)
Find the firstWebElement
using the given method.WebElement
WrapsElement. getWrappedElement()
Methods in org.openqa.selenium that return types with arguments of type WebElement Modifier and Type Method Description abstract java.util.List<WebElement>
By. findElements(SearchContext context)
Find many elements.java.util.List<WebElement>
SearchContext. findElements(By by)
Find all elements within the current context using the given mechanism.java.util.List<WebElement>
WebDriver. findElements(By by)
Find all elements within the current page using the given mechanism.java.util.List<WebElement>
WebElement. findElements(By by)
Find all elements within the current context using the given mechanism.Methods in org.openqa.selenium with parameters of type WebElement Modifier and Type Method Description WebDriver
WebDriver.TargetLocator. frame(WebElement frameElement)
Select a frame using its previously locatedWebElement
. -
Uses of WebElement in org.openqa.selenium.interactions
Methods in org.openqa.selenium.interactions with parameters of type WebElement Modifier and Type Method Description Actions
Actions. click(WebElement target)
Clicks in the middle of the given element.Actions
Actions. clickAndHold(WebElement target)
Clicks (without releasing) in the middle of the given element.Actions
Actions. contextClick(WebElement target)
Performs a context-click at middle of the given element.Actions
Actions. doubleClick(WebElement target)
Performs a double-click at middle of the given element.Actions
Actions. dragAndDrop(WebElement source, WebElement target)
A convenience method that performs click-and-hold at the location of the source element, moves to the location of the target element, then releases the mouse.Actions
Actions. dragAndDropBy(WebElement source, int xOffset, int yOffset)
A convenience method that performs click-and-hold at the location of the source element, moves by a given offset, then releases the mouse.static PointerInput.Origin
PointerInput.Origin. fromElement(WebElement element)
static WheelInput.ScrollOrigin
WheelInput.ScrollOrigin. fromElement(WebElement element)
static WheelInput.ScrollOrigin
WheelInput.ScrollOrigin. fromElement(WebElement element, int xOffset, int yOffset)
Actions
Actions. keyDown(WebElement target, java.lang.CharSequence key)
Performs a modifier key press after focusing on an element.Actions
Actions. keyUp(WebElement target, java.lang.CharSequence key)
Performs a modifier key release after focusing on an element.Actions
Actions. moveToElement(WebElement target)
Moves the mouse to the middle of the element.Actions
Actions. moveToElement(WebElement target, int xOffset, int yOffset)
Moves the mouse to an offset from the element's in-view center point.Actions
Actions. release(WebElement target)
Releases the depressed left mouse button, in the middle of the given element.Actions
Actions. scrollToElement(WebElement element)
If the element is outside the viewport, scrolls the bottom of the element to the bottom of the viewport.Actions
Actions. sendKeys(WebElement target, java.lang.CharSequence... keys)
Equivalent to calling: Actions.click(element).sendKeys(keysToSend). This method is different fromsendKeys(CharSequence...)
- seeActions.sendKeys(CharSequence...)
for details how. -
Uses of WebElement in org.openqa.selenium.interactions.internal
Methods in org.openqa.selenium.interactions.internal that return types with arguments of type WebElement Modifier and Type Method Description protected java.util.Optional<WebElement>
BaseAction. getTargetElement()
Deprecated. -
Uses of WebElement in org.openqa.selenium.interactions.touch
Methods in org.openqa.selenium.interactions.touch with parameters of type WebElement Modifier and Type Method Description TouchActions
TouchActions. doubleTap(WebElement onElement)
Allows the execution of double tap on the screen, analogous to double click using a Mouse.TouchActions
TouchActions. flick(WebElement onElement, int xOffset, int yOffset, int speed)
Allows the execution of flick gestures starting in a location's element.TouchActions
TouchActions. longPress(WebElement onElement)
Allows the execution of long press gestures.TouchActions
TouchActions. scroll(WebElement onElement, int xOffset, int yOffset)
Creates a scroll gesture that starts on a particular screen location.TouchActions
TouchActions. singleTap(WebElement onElement)
Allows the execution of single tap on the screen, analogous to click using a Mouse.
-