public class WindowsDriver<T extends WebElement> extends AppiumDriver<T> implements PressesKeyCode, HidesKeyboardWithKeyName, FindsByWindowsAutomation<T>
org.openqa.selenium.remote.RemoteWebDriver.RemoteTargetLocator, org.openqa.selenium.remote.RemoteWebDriver.RemoteWebDriverOptions, org.openqa.selenium.remote.RemoteWebDriver.WhenWebDriver.ImeHandler, WebDriver.Navigation, WebDriver.Options, WebDriver.TargetLocator, WebDriver.Timeouts, WebDriver.Window| Constructor and Description |
|---|
WindowsDriver(AppiumDriverLocalService service,
org.openqa.selenium.Capabilities desiredCapabilities) |
WindowsDriver(AppiumDriverLocalService service,
org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory,
org.openqa.selenium.Capabilities desiredCapabilities) |
WindowsDriver(AppiumServiceBuilder builder,
org.openqa.selenium.Capabilities desiredCapabilities) |
WindowsDriver(AppiumServiceBuilder builder,
org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory,
org.openqa.selenium.Capabilities desiredCapabilities) |
WindowsDriver(org.openqa.selenium.Capabilities desiredCapabilities) |
WindowsDriver(org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory,
org.openqa.selenium.Capabilities desiredCapabilities) |
WindowsDriver(org.openqa.selenium.remote.HttpCommandExecutor executor,
org.openqa.selenium.Capabilities capabilities) |
WindowsDriver(java.net.URL remoteAddress,
org.openqa.selenium.Capabilities desiredCapabilities) |
WindowsDriver(java.net.URL remoteAddress,
org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory,
org.openqa.selenium.Capabilities desiredCapabilities) |
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.remote.Response |
execute(java.lang.String command)
Executes JSONWP command and returns a response.
|
org.openqa.selenium.remote.Response |
execute(java.lang.String driverCommand,
java.util.Map<java.lang.String,?> parameters)
Executes JSONWP command and returns a response.
|
T |
findElement(org.openqa.selenium.By by)
Find the first
WebElement using the given method. |
T |
findElement(java.lang.String by,
java.lang.String using)
Method performs the searching for a single element by some selector defined by string
and value of the given selector.
|
T |
findElementByClassName(java.lang.String using) |
T |
findElementByCssSelector(java.lang.String using)
Finds a single element by CSS selector.
|
T |
findElementById(java.lang.String id) |
T |
findElementByLinkText(java.lang.String using)
Finds a single element by link text.
|
T |
findElementByName(java.lang.String using) |
T |
findElementByPartialLinkText(java.lang.String using)
Finds a single element by partial link text.
|
T |
findElementByTagName(java.lang.String using) |
T |
findElementByXPath(java.lang.String using) |
org.openqa.selenium.interactions.Mouse |
getMouse()
Deprecated.
|
java.lang.String |
toString() |
context, findElements, findElements, findElementsByAccessibilityId, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByLinkText, findElementsByName, findElementsByPartialLinkText, findElementsByTagName, findElementsByXPath, getContext, getContextHandles, getExecuteMethod, getOrientation, getRemoteAddress, isBrowser, location, rotate, rotate, rotation, setLocation, substituteMobilePlatformclose, executeAsyncScript, executeScript, get, getCapabilities, getCommandExecutor, getCurrentUrl, getElementConverter, getErrorHandler, getFileDetector, getKeyboard, getPageSource, getScreenshotAs, getSessionId, getTitle, getWindowHandle, getWindowHandles, log, manage, navigate, perform, quit, resetInputState, setCommandExecutor, setElementConverter, setErrorHandler, setFileDetector, setFoundBy, setLogLevel, setSessionId, startSession, switchToclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitlongPressKeyCode, longPressKeyCode, pressKeyCode, pressKeyCodehideKeyboard, hideKeyboardhideKeyboardexecute, executefindElementByWindowsUIAutomation, findElementsByWindowsUIAutomationfindElement, findElementsfindImageOccurrence, findImageOccurrence, findImageOccurrence, findImageOccurrence, getImagesSimilarity, getImagesSimilarity, getImagesSimilarity, getImagesSimilarity, matchImagesFeatures, matchImagesFeatures, matchImagesFeatures, matchImagesFeaturesclose, get, getCurrentUrl, getPageSource, getTitle, getWindowHandle, getWindowHandles, manage, navigate, quit, switchToperformMultiTouchAction, performTouchActionfindElementByAccessibilityIdgetDeviceTime, getDeviceTimepullFile, pullFolderactivateApp, activateApp, closeApp, installApp, installApp, isAppInstalled, launchApp, queryAppState, removeApp, removeApp, resetApp, runAppInBackground, terminateApp, terminateAppgetAppStringMap, getAppStringMap, getAppStringMapgetAutomationName, getPlatformName, getSessionDetail, getSessionDetailspublic WindowsDriver(org.openqa.selenium.remote.HttpCommandExecutor executor,
org.openqa.selenium.Capabilities capabilities)
public WindowsDriver(java.net.URL remoteAddress,
org.openqa.selenium.Capabilities desiredCapabilities)
public WindowsDriver(java.net.URL remoteAddress,
org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory,
org.openqa.selenium.Capabilities desiredCapabilities)
public WindowsDriver(AppiumDriverLocalService service, org.openqa.selenium.Capabilities desiredCapabilities)
public WindowsDriver(AppiumDriverLocalService service, org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory, org.openqa.selenium.Capabilities desiredCapabilities)
public WindowsDriver(AppiumServiceBuilder builder, org.openqa.selenium.Capabilities desiredCapabilities)
public WindowsDriver(AppiumServiceBuilder builder, org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory, org.openqa.selenium.Capabilities desiredCapabilities)
public WindowsDriver(org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory,
org.openqa.selenium.Capabilities desiredCapabilities)
public WindowsDriver(org.openqa.selenium.Capabilities desiredCapabilities)
public org.openqa.selenium.remote.Response execute(java.lang.String driverCommand,
java.util.Map<java.lang.String,?> parameters)
ExecutesMethodexecute in interface ExecutesMethodexecute in class org.openqa.selenium.remote.RemoteWebDriverdriverCommand - a JSONWP commandparameters - map of command parameterspublic org.openqa.selenium.remote.Response execute(java.lang.String command)
ExecutesMethodexecute in interface ExecutesMethodexecute in class org.openqa.selenium.remote.RemoteWebDrivercommand - a JSONWP commandpublic T findElement(org.openqa.selenium.By by)
WebDriverWebElement 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 MobileDriver<T extends WebElement>findElement in interface SearchContextfindElement in interface WebDriverfindElement in class org.openqa.selenium.remote.RemoteWebDriverby - The locating mechanismBy,
WebDriver.Timeoutspublic T findElement(java.lang.String by,
java.lang.String using)
FindsByFluentSelectorfindElement in interface FindsByFluentSelector<T extends WebElement>findElement in class org.openqa.selenium.remote.RemoteWebDriverby - is a string selectorusing - is a value of the given selectorpublic T findElementById(java.lang.String id)
findElementById in interface MobileDriver<T extends WebElement>findElementById in interface FindsByIdfindElementById in class org.openqa.selenium.remote.RemoteWebDriverpublic T findElementByLinkText(java.lang.String using)
throws org.openqa.selenium.WebDriverException
findElementByLinkText in interface MobileDriver<T extends WebElement>findElementByLinkText in interface FindsByLinkTextfindElementByLinkText in class org.openqa.selenium.remote.RemoteWebDriverorg.openqa.selenium.WebDriverException - This method doesn't work against native app UI.public T findElementByPartialLinkText(java.lang.String using)
throws org.openqa.selenium.WebDriverException
findElementByPartialLinkText in interface MobileDriver<T extends WebElement>findElementByPartialLinkText in interface FindsByLinkTextfindElementByPartialLinkText in class org.openqa.selenium.remote.RemoteWebDriverorg.openqa.selenium.WebDriverException - This method doesn't work against native app UI.public T findElementByTagName(java.lang.String using)
findElementByTagName in interface MobileDriver<T extends WebElement>findElementByTagName in interface FindsByTagNamefindElementByTagName in class org.openqa.selenium.remote.RemoteWebDriverpublic T findElementByName(java.lang.String using)
findElementByName in interface MobileDriver<T extends WebElement>findElementByName in interface FindsByNamefindElementByName in class org.openqa.selenium.remote.RemoteWebDriverpublic T findElementByClassName(java.lang.String using)
findElementByClassName in interface MobileDriver<T extends WebElement>findElementByClassName in interface FindsByClassNamefindElementByClassName in class org.openqa.selenium.remote.RemoteWebDriverpublic T findElementByCssSelector(java.lang.String using)
throws org.openqa.selenium.WebDriverException
findElementByCssSelector in interface MobileDriver<T extends WebElement>findElementByCssSelector in interface FindsByCssSelectorfindElementByCssSelector in class org.openqa.selenium.remote.RemoteWebDriverorg.openqa.selenium.WebDriverException - This method doesn't work against native app UI.public T findElementByXPath(java.lang.String using)
findElementByXPath in interface MobileDriver<T extends WebElement>findElementByXPath in interface FindsByXPathfindElementByXPath in class org.openqa.selenium.remote.RemoteWebDriver@Deprecated public org.openqa.selenium.interactions.Mouse getMouse()
getMouse in interface org.openqa.selenium.interactions.HasInputDevicesgetMouse in class org.openqa.selenium.remote.RemoteWebDriverpublic java.lang.String toString()
toString in class org.openqa.selenium.remote.RemoteWebDriver