Class WebdriverUnwrapper

java.lang.Object
com.codeborne.selenide.appium.WebdriverUnwrapper

public class WebdriverUnwrapper extends Object
A temporary solution to fix ... Will be replaced by a better solution in Selenide.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> Optional<T>
    cast(com.codeborne.selenide.Driver driver, Class<T> klass)
     
    static <T> Optional<T>
    cast(org.openqa.selenium.SearchContext driverOrElement, Class<T> klass)
     
    static <T> T
    cast(org.openqa.selenium.WebElement probablyWrappedWebElement, Class<T> klass)
     
    static <T> boolean
    instanceOf(com.codeborne.selenide.Driver driver, Class<T> klass)
     
    static <T> boolean
    instanceOf(org.openqa.selenium.SearchContext driver, Class<T> klass)
     
    static boolean
    isMobile(com.codeborne.selenide.Driver driver)
     
    static boolean
    isMobile(org.openqa.selenium.SearchContext driver)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WebdriverUnwrapper

      public WebdriverUnwrapper()
  • Method Details

    • isMobile

      public static boolean isMobile(com.codeborne.selenide.Driver driver)
    • isMobile

      public static boolean isMobile(org.openqa.selenium.SearchContext driver)
    • instanceOf

      public static <T> boolean instanceOf(com.codeborne.selenide.Driver driver, Class<T> klass)
    • instanceOf

      public static <T> boolean instanceOf(org.openqa.selenium.SearchContext driver, Class<T> klass)
    • cast

      public static <T> Optional<T> cast(com.codeborne.selenide.Driver driver, Class<T> klass)
    • cast

      public static <T> Optional<T> cast(org.openqa.selenium.SearchContext driverOrElement, Class<T> klass)
    • cast

      public static <T> T cast(org.openqa.selenium.WebElement probablyWrappedWebElement, Class<T> klass)