Class WebdriverUnwrapper

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

public class WebdriverUnwrapper extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> Optional<T>
    cast(Driver driver, Class<T> klass)
    Deprecated, for removal: This API element is subject to removal in a future version.
    instead of using this method, just cast your WebDriver to the needed interface, e.g.
    static <T> Optional<T>
    cast(org.openqa.selenium.SearchContext driverOrElement, Class<T> klass)
    Deprecated, for removal: This API element is subject to removal in a future version.
    instead of using this method, just cast your WebDriver to the needed interface, e.g.
    static <T> T
    cast(org.openqa.selenium.WebElement probablyWrappedWebElement, Class<T> klass)
     
    static <T> boolean
    instanceOf(Driver driver, Class<T> klass)
    Deprecated, for removal: This API element is subject to removal in a future version.
    instead of using this method, just cast your WebDriver to the needed interface, e.g.
    static <T> boolean
    instanceOf(org.openqa.selenium.SearchContext driver, Class<T> klass)
    Deprecated, for removal: This API element is subject to removal in a future version.
    instead of using this method, just cast your WebDriver to the needed interface, e.g.
    static @Nullable org.openqa.selenium.WebDriver
    unwrap(org.openqa.selenium.SearchContext driverOrElement)
    Deprecated, for removal: This API element is subject to removal in a future version.
    instead of using this method, just cast your WebDriver to the needed interface, e.g.
    static org.openqa.selenium.remote.RemoteWebDriver
    unwrapRemoteWebDriver(org.openqa.selenium.WebDriver 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

    • instanceOf

      @Deprecated(forRemoval=true) public static <T> boolean instanceOf(Driver driver, Class<T> klass)
      Deprecated, for removal: This API element is subject to removal in a future version.
      instead of using this method, just cast your WebDriver to the needed interface, e.g. JavascriptExecutor or TakesScreenshot.
    • instanceOf

      @Deprecated(forRemoval=true) public static <T> boolean instanceOf(org.openqa.selenium.SearchContext driver, Class<T> klass)
      Deprecated, for removal: This API element is subject to removal in a future version.
      instead of using this method, just cast your WebDriver to the needed interface, e.g. JavascriptExecutor or TakesScreenshot.
    • cast

      @Deprecated(forRemoval=true) public static <T> Optional<T> cast(Driver driver, Class<T> klass)
      Deprecated, for removal: This API element is subject to removal in a future version.
      instead of using this method, just cast your WebDriver to the needed interface, e.g. JavascriptExecutor or TakesScreenshot.
    • cast

      @Deprecated(forRemoval=true) public static <T> Optional<T> cast(org.openqa.selenium.SearchContext driverOrElement, Class<T> klass)
      Deprecated, for removal: This API element is subject to removal in a future version.
      instead of using this method, just cast your WebDriver to the needed interface, e.g. JavascriptExecutor or TakesScreenshot.
    • cast

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

      @Deprecated(forRemoval=true) public static @Nullable org.openqa.selenium.WebDriver unwrap(org.openqa.selenium.SearchContext driverOrElement)
      Deprecated, for removal: This API element is subject to removal in a future version.
      instead of using this method, just cast your WebDriver to the needed interface, e.g. JavascriptExecutor or TakesScreenshot.
    • unwrapRemoteWebDriver

      public static org.openqa.selenium.remote.RemoteWebDriver unwrapRemoteWebDriver(org.openqa.selenium.WebDriver driver)