public interface MobileDriver<T extends WebElement> extends WebDriver, PerformsTouchActions, org.openqa.selenium.ContextAware, org.openqa.selenium.Rotatable, FindsByAccessibilityId<T>, org.openqa.selenium.html5.LocationContext, HidesKeyboard, HasDeviceTime, InteractsWithFiles, InteractsWithApps, HasAppStrings, FindsByClassName, FindsByCssSelector, FindsById, FindsByLinkText, FindsByName, FindsByTagName, FindsByXPath, FindsByFluentSelector<T>, ExecutesMethod, HasSessionDetails
WebDriver.ImeHandler, WebDriver.Navigation, WebDriver.Options, WebDriver.TargetLocator, WebDriver.Timeouts, WebDriver.Window
Modifier and Type | Method and Description |
---|---|
T |
findElement(org.openqa.selenium.By by)
Find the first
WebElement using the given method. |
T |
findElementByClassName(java.lang.String className) |
T |
findElementByCssSelector(java.lang.String cssSelector) |
T |
findElementById(java.lang.String id) |
T |
findElementByLinkText(java.lang.String linkText) |
T |
findElementByName(java.lang.String name) |
T |
findElementByPartialLinkText(java.lang.String partialLinkText) |
T |
findElementByTagName(java.lang.String tagName) |
T |
findElementByXPath(java.lang.String xPath) |
java.util.List<T> |
findElements(org.openqa.selenium.By by)
Find all elements within the current page using the given mechanism.
|
java.util.List<T> |
findElementsByClassName(java.lang.String className) |
java.util.List<T> |
findElementsByCssSelector(java.lang.String cssSelector) |
java.util.List<T> |
findElementsById(java.lang.String id) |
java.util.List<T> |
findElementsByLinkText(java.lang.String linkText) |
java.util.List<T> |
findElementsByName(java.lang.String name) |
java.util.List<T> |
findElementsByPartialLinkText(java.lang.String partialLinkText) |
java.util.List<T> |
findElementsByTagName(java.lang.String tagName) |
java.util.List<T> |
findElementsByXPath(java.lang.String xPath) |
close, get, getCurrentUrl, getPageSource, getTitle, getWindowHandle, getWindowHandles, manage, navigate, quit, switchTo
performMultiTouchAction, performTouchAction
context, getContext, getContextHandles
getOrientation, rotate, rotate, rotation
findElementByAccessibilityId, findElementsByAccessibilityId
findElement, findElements
hideKeyboard
getDeviceTime, getDeviceTime
pullFile, pullFolder
activateApp, activateApp, closeApp, installApp, installApp, isAppInstalled, launchApp, queryAppState, removeApp, removeApp, resetApp, runAppInBackground, terminateApp, terminateApp
getAppStringMap, getAppStringMap, getAppStringMap
getAutomationName, getPlatformName, getSessionDetail, getSessionDetails, isBrowser
java.util.List<T> findElements(org.openqa.selenium.By by)
WebDriver
findElements
in interface SearchContext
findElements
in interface WebDriver
by
- The locating mechanism to useWebElement
s, or an empty list if nothing matchesBy
,
WebDriver.Timeouts
T findElement(org.openqa.selenium.By by)
WebDriver
WebElement
using the given method.
This method is affected by the 'implicit wait' times in force at the time of execution.
The findElement(..) invocation will return a matching row, or try again repeatedly until
the configured timeout is reached.
findElement should not be used to look for non-present elements, use WebDriver.findElements(By)
and assert zero length response instead.findElement
in interface SearchContext
findElement
in interface WebDriver
by
- The locating mechanismBy
,
WebDriver.Timeouts
T findElementByClassName(java.lang.String className)
findElementByClassName
in interface FindsByClassName
java.util.List<T> findElementsByClassName(java.lang.String className)
findElementsByClassName
in interface FindsByClassName
T findElementByCssSelector(java.lang.String cssSelector)
findElementByCssSelector
in interface FindsByCssSelector
java.util.List<T> findElementsByCssSelector(java.lang.String cssSelector)
findElementsByCssSelector
in interface FindsByCssSelector
T findElementById(java.lang.String id)
findElementById
in interface FindsById
java.util.List<T> findElementsById(java.lang.String id)
findElementsById
in interface FindsById
T findElementByLinkText(java.lang.String linkText)
findElementByLinkText
in interface FindsByLinkText
java.util.List<T> findElementsByLinkText(java.lang.String linkText)
findElementsByLinkText
in interface FindsByLinkText
T findElementByPartialLinkText(java.lang.String partialLinkText)
findElementByPartialLinkText
in interface FindsByLinkText
java.util.List<T> findElementsByPartialLinkText(java.lang.String partialLinkText)
findElementsByPartialLinkText
in interface FindsByLinkText
T findElementByName(java.lang.String name)
findElementByName
in interface FindsByName
java.util.List<T> findElementsByName(java.lang.String name)
findElementsByName
in interface FindsByName
T findElementByTagName(java.lang.String tagName)
findElementByTagName
in interface FindsByTagName
java.util.List<T> findElementsByTagName(java.lang.String tagName)
findElementsByTagName
in interface FindsByTagName
T findElementByXPath(java.lang.String xPath)
findElementByXPath
in interface FindsByXPath
java.util.List<T> findElementsByXPath(java.lang.String xPath)
findElementsByXPath
in interface FindsByXPath