Class Device<Driver extends org.openqa.selenium.WebDriver>

java.lang.Object
io.webdevice.device.Device<Driver>

public class Device<Driver extends org.openqa.selenium.WebDriver>
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    Device​(java.lang.String name, Driver driver, java.util.function.Function<Driver,​org.openqa.selenium.remote.SessionId> session)  
  • Method Summary

    Modifier and Type Method Description
    <T> T as​(java.lang.Class<T> type)  
    boolean equals​(java.lang.Object o)  
    Driver getDriver()  
    java.lang.String getName()  
    org.openqa.selenium.remote.SessionId getSessionId()  
    int hashCode()  
    <R> R invoke​(java.util.function.Function<Driver,​R> function)  
    Device<Driver> perform​(java.util.function.Consumer<Driver> consumer)  

    Methods inherited from class java.lang.Object

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

    • Device

      public Device​(java.lang.String name, Driver driver, java.util.function.Function<Driver,​org.openqa.selenium.remote.SessionId> session)
  • Method Details

    • getName

      public java.lang.String getName()
    • getDriver

      public Driver getDriver()
    • as

      public <T> T as​(java.lang.Class<T> type)
    • getSessionId

      public org.openqa.selenium.remote.SessionId getSessionId()
    • perform

      public Device<Driver> perform​(java.util.function.Consumer<Driver> consumer)
    • invoke

      public <R> R invoke​(java.util.function.Function<Driver,​R> function)
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object