Class AndroidWebDriverStub
java.lang.Object
net.thucydides.core.webdriver.stubs.WebDriverStub
net.thucydides.core.webdriver.stubs.AndroidWebDriverStub
- All Implemented Interfaces:
io.appium.java_client.android.connection.HasNetworkConnection
,io.appium.java_client.android.HasAndroidDeviceDetails
,io.appium.java_client.android.HasSupportedPerformanceDataType
,io.appium.java_client.android.PushesFiles
,io.appium.java_client.android.StartsActivity
,io.appium.java_client.ExecutesMethod
,io.appium.java_client.FindsByAndroidUIAutomator
,io.appium.java_client.FindsByFluentSelector
,io.appium.java_client.InteractsWithFiles
,io.appium.java_client.LocksDevice
,io.appium.java_client.windows.PressesKeyCode
,org.openqa.selenium.SearchContext
,org.openqa.selenium.WebDriver
public class AndroidWebDriverStub extends WebDriverStub implements io.appium.java_client.windows.PressesKeyCode, io.appium.java_client.android.connection.HasNetworkConnection, io.appium.java_client.android.PushesFiles, io.appium.java_client.android.StartsActivity, io.appium.java_client.FindsByAndroidUIAutomator, io.appium.java_client.android.HasAndroidDeviceDetails, io.appium.java_client.android.HasSupportedPerformanceDataType, io.appium.java_client.LocksDevice
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openqa.selenium.WebDriver
org.openqa.selenium.WebDriver.ImeHandler, org.openqa.selenium.WebDriver.Navigation, org.openqa.selenium.WebDriver.Options, org.openqa.selenium.WebDriver.TargetLocator, org.openqa.selenium.WebDriver.Timeouts, org.openqa.selenium.WebDriver.Window
-
Constructor Summary
Constructors Constructor Description AndroidWebDriverStub()
-
Method Summary
Modifier and Type Method Description void
close()
org.openqa.selenium.remote.Response
execute(java.lang.String s)
org.openqa.selenium.remote.Response
execute(java.lang.String s, java.util.Map<java.lang.String,?> map)
org.openqa.selenium.WebElement
findElement(java.lang.String s, java.lang.String s1)
org.openqa.selenium.WebElement
findElement(org.openqa.selenium.By by)
java.util.List
findElements(java.lang.String s, java.lang.String s1)
java.util.List<org.openqa.selenium.WebElement>
findElements(org.openqa.selenium.By by)
void
get(java.lang.String s)
java.lang.String
getCurrentUrl()
java.lang.String
getPageSource()
java.lang.String
getTitle()
java.lang.String
getWindowHandle()
java.util.Set<java.lang.String>
getWindowHandles()
org.openqa.selenium.WebDriver.Options
manage()
org.openqa.selenium.WebDriver.Navigation
navigate()
void
quit()
org.openqa.selenium.WebDriver.TargetLocator
switchTo()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.appium.java_client.FindsByAndroidUIAutomator
findElementByAndroidUIAutomator, findElementsByAndroidUIAutomator
Methods inherited from interface io.appium.java_client.android.HasAndroidDeviceDetails
getDisplayDensity, getSystemBars
Methods inherited from interface io.appium.java_client.android.connection.HasNetworkConnection
getConnection, setConnection
Methods inherited from interface io.appium.java_client.android.HasSupportedPerformanceDataType
getPerformanceData, getSupportedPerformanceDataTypes
Methods inherited from interface io.appium.java_client.InteractsWithFiles
pullFile, pullFolder
Methods inherited from interface io.appium.java_client.LocksDevice
isDeviceLocked, lockDevice, lockDevice, unlockDevice
Methods inherited from interface io.appium.java_client.windows.PressesKeyCode
longPressKeyCode, longPressKeyCode, pressKeyCode, pressKeyCode
Methods inherited from interface io.appium.java_client.android.PushesFiles
pushFile, pushFile
Methods inherited from interface io.appium.java_client.android.StartsActivity
currentActivity, getCurrentPackage, startActivity
-
Constructor Details
-
AndroidWebDriverStub
public AndroidWebDriverStub()
-
-
Method Details
-
get
public void get(java.lang.String s)- Specified by:
get
in interfaceorg.openqa.selenium.WebDriver
- Overrides:
get
in classWebDriverStub
-
getCurrentUrl
public java.lang.String getCurrentUrl()- Specified by:
getCurrentUrl
in interfaceorg.openqa.selenium.WebDriver
- Overrides:
getCurrentUrl
in classWebDriverStub
-
getTitle
public java.lang.String getTitle()- Specified by:
getTitle
in interfaceorg.openqa.selenium.WebDriver
- Overrides:
getTitle
in classWebDriverStub
-
findElements
public java.util.List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)- Specified by:
findElements
in interfaceorg.openqa.selenium.SearchContext
- Specified by:
findElements
in interfaceorg.openqa.selenium.WebDriver
- Overrides:
findElements
in classWebDriverStub
-
findElement
public org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)- Specified by:
findElement
in interfaceorg.openqa.selenium.SearchContext
- Specified by:
findElement
in interfaceorg.openqa.selenium.WebDriver
- Overrides:
findElement
in classWebDriverStub
-
getPageSource
public java.lang.String getPageSource()- Specified by:
getPageSource
in interfaceorg.openqa.selenium.WebDriver
- Overrides:
getPageSource
in classWebDriverStub
-
close
public void close()- Specified by:
close
in interfaceorg.openqa.selenium.WebDriver
- Overrides:
close
in classWebDriverStub
-
quit
public void quit()- Specified by:
quit
in interfaceorg.openqa.selenium.WebDriver
- Overrides:
quit
in classWebDriverStub
-
getWindowHandles
public java.util.Set<java.lang.String> getWindowHandles()- Specified by:
getWindowHandles
in interfaceorg.openqa.selenium.WebDriver
- Overrides:
getWindowHandles
in classWebDriverStub
-
getWindowHandle
public java.lang.String getWindowHandle()- Specified by:
getWindowHandle
in interfaceorg.openqa.selenium.WebDriver
- Overrides:
getWindowHandle
in classWebDriverStub
-
switchTo
public org.openqa.selenium.WebDriver.TargetLocator switchTo()- Specified by:
switchTo
in interfaceorg.openqa.selenium.WebDriver
- Overrides:
switchTo
in classWebDriverStub
-
manage
public org.openqa.selenium.WebDriver.Options manage()- Specified by:
manage
in interfaceorg.openqa.selenium.WebDriver
- Overrides:
manage
in classWebDriverStub
-
execute
public org.openqa.selenium.remote.Response execute(java.lang.String s, java.util.Map<java.lang.String,?> map)- Specified by:
execute
in interfaceio.appium.java_client.ExecutesMethod
-
execute
public org.openqa.selenium.remote.Response execute(java.lang.String s)- Specified by:
execute
in interfaceio.appium.java_client.ExecutesMethod
-
findElement
public org.openqa.selenium.WebElement findElement(java.lang.String s, java.lang.String s1)- Specified by:
findElement
in interfaceio.appium.java_client.FindsByFluentSelector
-
findElements
public java.util.List findElements(java.lang.String s, java.lang.String s1)- Specified by:
findElements
in interfaceio.appium.java_client.FindsByFluentSelector
-