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 WebElementWebDriver.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.WebElementBy. findElement(SearchContext context)Find a single element.WebElementSearchContext. findElement(By by)Find the firstWebElementusing the given method.WebElementWebDriver. findElement(By by)Find the firstWebElementusing the given method.WebElementWebElement. findElement(By by)Find the firstWebElementusing the given method.WebElementWrapsElement. 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 WebDriverWebDriver.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 ActionsActions. click(WebElement target)Clicks in the middle of the given element.ActionsActions. clickAndHold(WebElement target)Clicks (without releasing) in the middle of the given element.ActionsActions. contextClick(WebElement target)Performs a context-click at middle of the given element.ActionsActions. doubleClick(WebElement target)Performs a double-click at middle of the given element.ActionsActions. 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.ActionsActions. 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.OriginPointerInput.Origin. fromElement(WebElement element)static WheelInput.ScrollOriginWheelInput.ScrollOrigin. fromElement(WebElement element)static WheelInput.ScrollOriginWheelInput.ScrollOrigin. fromElement(WebElement element, int xOffset, int yOffset)ActionsActions. keyDown(WebElement target, java.lang.CharSequence key)Performs a modifier key press after focusing on an element.ActionsActions. keyUp(WebElement target, java.lang.CharSequence key)Performs a modifier key release after focusing on an element.ActionsActions. moveToElement(WebElement target)Moves the mouse to the middle of the element.ActionsActions. moveToElement(WebElement target, int xOffset, int yOffset)Moves the mouse to an offset from the element's in-view center point.ActionsActions. release(WebElement target)Releases the depressed left mouse button, in the middle of the given element.ActionsActions. scrollToElement(WebElement element)If the element is outside the viewport, scrolls the bottom of the element to the bottom of the viewport.ActionsActions. 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 TouchActionsTouchActions. doubleTap(WebElement onElement)Allows the execution of double tap on the screen, analogous to double click using a Mouse.TouchActionsTouchActions. flick(WebElement onElement, int xOffset, int yOffset, int speed)Allows the execution of flick gestures starting in a location's element.TouchActionsTouchActions. longPress(WebElement onElement)Allows the execution of long press gestures.TouchActionsTouchActions. scroll(WebElement onElement, int xOffset, int yOffset)Creates a scroll gesture that starts on a particular screen location.TouchActionsTouchActions. singleTap(WebElement onElement)Allows the execution of single tap on the screen, analogous to click using a Mouse.
-