Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      org.openqa.selenium.remote.Response execute​(String s)  
      org.openqa.selenium.remote.Response execute​(String s, Map<String,​?> map)  
      org.openqa.selenium.WebElement findElement​(String s, String s1)  
      org.openqa.selenium.WebElement findElement​(org.openqa.selenium.By by)  
      List findElements​(String s, String s1)  
      List<org.openqa.selenium.WebElement> findElements​(org.openqa.selenium.By by)  
      void get​(String s)  
      String getCurrentUrl()  
      String getPageSource()  
      String getTitle()  
      String getWindowHandle()  
      Set<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 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 Detail

      • AndroidWebDriverStub

        public AndroidWebDriverStub()
    • Method Detail

      • get

        public void get​(String s)
        Specified by:
        get in interface org.openqa.selenium.WebDriver
        Overrides:
        get in class WebDriverStub
      • getCurrentUrl

        public String getCurrentUrl()
        Specified by:
        getCurrentUrl in interface org.openqa.selenium.WebDriver
        Overrides:
        getCurrentUrl in class WebDriverStub
      • getTitle

        public String getTitle()
        Specified by:
        getTitle in interface org.openqa.selenium.WebDriver
        Overrides:
        getTitle in class WebDriverStub
      • findElements

        public List<org.openqa.selenium.WebElement> findElements​(org.openqa.selenium.By by)
        Specified by:
        findElements in interface org.openqa.selenium.SearchContext
        Specified by:
        findElements in interface org.openqa.selenium.WebDriver
        Overrides:
        findElements in class WebDriverStub
      • findElement

        public org.openqa.selenium.WebElement findElement​(org.openqa.selenium.By by)
        Specified by:
        findElement in interface org.openqa.selenium.SearchContext
        Specified by:
        findElement in interface org.openqa.selenium.WebDriver
        Overrides:
        findElement in class WebDriverStub
      • getPageSource

        public String getPageSource()
        Specified by:
        getPageSource in interface org.openqa.selenium.WebDriver
        Overrides:
        getPageSource in class WebDriverStub
      • close

        public void close()
        Specified by:
        close in interface org.openqa.selenium.WebDriver
        Overrides:
        close in class WebDriverStub
      • quit

        public void quit()
        Specified by:
        quit in interface org.openqa.selenium.WebDriver
        Overrides:
        quit in class WebDriverStub
      • getWindowHandle

        public String getWindowHandle()
        Specified by:
        getWindowHandle in interface org.openqa.selenium.WebDriver
        Overrides:
        getWindowHandle in class WebDriverStub
      • switchTo

        public org.openqa.selenium.WebDriver.TargetLocator switchTo()
        Specified by:
        switchTo in interface org.openqa.selenium.WebDriver
        Overrides:
        switchTo in class WebDriverStub
      • navigate

        public org.openqa.selenium.WebDriver.Navigation navigate()
        Specified by:
        navigate in interface org.openqa.selenium.WebDriver
        Overrides:
        navigate in class WebDriverStub
      • manage

        public org.openqa.selenium.WebDriver.Options manage()
        Specified by:
        manage in interface org.openqa.selenium.WebDriver
        Overrides:
        manage in class WebDriverStub
      • execute

        public org.openqa.selenium.remote.Response execute​(String s,
                                                           Map<String,​?> map)
        Specified by:
        execute in interface io.appium.java_client.ExecutesMethod
      • execute

        public org.openqa.selenium.remote.Response execute​(String s)
        Specified by:
        execute in interface io.appium.java_client.ExecutesMethod
      • findElement

        public org.openqa.selenium.WebElement findElement​(String s,
                                                          String s1)
        Specified by:
        findElement in interface io.appium.java_client.FindsByFluentSelector
      • findElements

        public List findElements​(String s,
                                 String s1)
        Specified by:
        findElements in interface io.appium.java_client.FindsByFluentSelector