Package | Description |
---|---|
org.openqa.selenium | |
org.openqa.selenium.interactions | |
org.openqa.selenium.interactions.touch | |
org.openqa.selenium.internal |
Modifier and Type | Method and 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 |
WebDriver.findElement(By by)
Find the first
WebElement using the given method. |
WebElement |
WebElement.findElement(By by)
Find the first
WebElement using the given method. |
WebElement |
SearchContext.findElement(By by)
Find the first
WebElement using the given method. |
WebElement |
By.findElement(SearchContext context)
Find a single element.
|
WebElement |
By.ById.findElement(SearchContext context) |
WebElement |
By.ByLinkText.findElement(SearchContext context) |
WebElement |
By.ByPartialLinkText.findElement(SearchContext context) |
WebElement |
By.ByName.findElement(SearchContext context) |
WebElement |
By.ByTagName.findElement(SearchContext context) |
WebElement |
By.ByXPath.findElement(SearchContext context) |
WebElement |
By.ByClassName.findElement(SearchContext context) |
WebElement |
By.ByCssSelector.findElement(SearchContext context) |
Modifier and Type | Method and Description |
---|---|
List<WebElement> |
WebDriver.findElements(By by)
Find all elements within the current page using the given mechanism.
|
List<WebElement> |
WebElement.findElements(By by)
Find all elements within the current context using the given mechanism.
|
List<WebElement> |
SearchContext.findElements(By by)
Find all elements within the current context using the given mechanism.
|
abstract List<WebElement> |
By.findElements(SearchContext context)
Find many elements.
|
List<WebElement> |
By.ById.findElements(SearchContext context) |
List<WebElement> |
By.ByLinkText.findElements(SearchContext context) |
List<WebElement> |
By.ByPartialLinkText.findElements(SearchContext context) |
List<WebElement> |
By.ByName.findElements(SearchContext context) |
List<WebElement> |
By.ByTagName.findElements(SearchContext context) |
List<WebElement> |
By.ByXPath.findElements(SearchContext context) |
List<WebElement> |
By.ByClassName.findElements(SearchContext context) |
List<WebElement> |
By.ByCssSelector.findElements(SearchContext context) |
Modifier and Type | Method and Description |
---|---|
WebDriver |
WebDriver.TargetLocator.frame(WebElement frameElement)
Select a frame using its previously located
WebElement . |
Modifier and Type | Method and Description |
---|---|
Actions |
Actions.click(WebElement onElement)
Clicks in the middle of the given element.
|
Actions |
Actions.clickAndHold(WebElement onElement)
Clicks (without releasing) in the middle of the given element.
|
Actions |
Actions.contextClick(WebElement onElement)
Performs a context-click at middle of the given element.
|
Actions |
Actions.doubleClick(WebElement onElement)
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.
|
Actions |
Actions.keyDown(WebElement element,
Keys theKey)
Performs a modifier key press after focusing on an element.
|
Actions |
Actions.keyUp(WebElement element,
Keys theKey)
Performs a modifier key release after focusing on an element.
|
Actions |
Actions.moveToElement(WebElement toElement)
Moves the mouse to the middle of the element.
|
Actions |
Actions.moveToElement(WebElement toElement,
int xOffset,
int yOffset)
Moves the mouse to an offset from the top-left corner of the element.
|
Actions |
Actions.release(WebElement onElement)
Releases the depressed left mouse button, in the middle of the given element.
|
Actions |
Actions.sendKeys(WebElement element,
CharSequence... keysToSend)
Equivalent to calling:
Actions.click(element).sendKeys(keysToSend).
This method is different from
sendKeys(CharSequence...) - see
Actions.sendKeys(CharSequence...) for details how. |
Modifier and Type | Method and Description |
---|---|
TouchActions |
TouchActions.doubleTap(WebElement onElement)
Allows the execution of double tapon 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.
|
Modifier and Type | Method and Description |
---|---|
WebElement |
FindsByClassName.findElementByClassName(String using) |
WebElement |
FindsByCssSelector.findElementByCssSelector(String using) |
WebElement |
FindsById.findElementById(String using) |
WebElement |
FindsByLinkText.findElementByLinkText(String using) |
WebElement |
FindsByName.findElementByName(String using) |
WebElement |
FindsByLinkText.findElementByPartialLinkText(String using) |
WebElement |
FindsByTagName.findElementByTagName(String using) |
WebElement |
FindsByXPath.findElementByXPath(String using) |
WebElement |
WrapsElement.getWrappedElement() |
Modifier and Type | Method and Description |
---|---|
List<WebElement> |
FindsByClassName.findElementsByClassName(String using) |
List<WebElement> |
FindsByCssSelector.findElementsByCssSelector(String using) |
List<WebElement> |
FindsById.findElementsById(String using) |
List<WebElement> |
FindsByLinkText.findElementsByLinkText(String using) |
List<WebElement> |
FindsByName.findElementsByName(String using) |
List<WebElement> |
FindsByLinkText.findElementsByPartialLinkText(String using) |
List<WebElement> |
FindsByTagName.findElementsByTagName(String using) |
List<WebElement> |
FindsByXPath.findElementsByXPath(String using) |
Copyright © 2013. All rights reserved.