Class Devices

java.lang.Object
io.webdevice.device.Devices

public class Devices
extends java.lang.Object
  • Method Summary

    Modifier and Type Method Description
    static <Driver extends org.openqa.selenium.WebDriver>
    Device<Driver>
    directDevice​(java.lang.String name, Driver driver)  
    static <Driver extends org.openqa.selenium.WebDriver>
    DeviceProvider<Driver>
    directProvider​(java.lang.String device, java.util.function.Supplier<Driver> supplier)  
    static <Driver extends org.openqa.selenium.WebDriver>
    java.util.function.Function<Driver,​org.openqa.selenium.remote.SessionId>
    fixedSession()  
    static <Driver extends org.openqa.selenium.WebDriver>
    java.util.function.Function<Driver,​org.openqa.selenium.remote.SessionId>
    fixedSession​(org.openqa.selenium.remote.SessionId sessionId)  
    static <Driver extends org.openqa.selenium.WebDriver>
    DeviceProvider<Driver>
    provider​(java.lang.String device, java.util.function.Supplier<Driver> supplier, java.util.function.Function<Driver,​org.openqa.selenium.remote.SessionId> session)  
    static <Driver extends org.openqa.selenium.WebDriver>
    DeviceProvider<Driver>
    provider​(java.util.function.Supplier<Device<Driver>> supplier)  
    static org.openqa.selenium.remote.SessionId randomSessionId()  
    static <Driver extends org.openqa.selenium.remote.RemoteWebDriver>
    Device<Driver>
    remoteDevice​(java.lang.String name, Driver driver)  
    static <Driver extends org.openqa.selenium.remote.RemoteWebDriver>
    DeviceProvider<Driver>
    remoteProvider​(java.lang.String device, java.util.function.Supplier<Driver> supplier)  
    static <Driver extends org.openqa.selenium.remote.RemoteWebDriver>
    java.util.function.Function<Driver,​org.openqa.selenium.remote.SessionId>
    remoteSession()  

    Methods inherited from class java.lang.Object

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

    • randomSessionId

      public static org.openqa.selenium.remote.SessionId randomSessionId()
    • fixedSession

      public static <Driver extends org.openqa.selenium.WebDriver> java.util.function.Function<Driver,​org.openqa.selenium.remote.SessionId> fixedSession​(org.openqa.selenium.remote.SessionId sessionId)
    • fixedSession

      public static <Driver extends org.openqa.selenium.WebDriver> java.util.function.Function<Driver,​org.openqa.selenium.remote.SessionId> fixedSession()
    • remoteSession

      public static <Driver extends org.openqa.selenium.remote.RemoteWebDriver> java.util.function.Function<Driver,​org.openqa.selenium.remote.SessionId> remoteSession()
    • remoteDevice

      public static <Driver extends org.openqa.selenium.remote.RemoteWebDriver> Device<Driver> remoteDevice​(java.lang.String name, Driver driver)
    • directDevice

      public static <Driver extends org.openqa.selenium.WebDriver> Device<Driver> directDevice​(java.lang.String name, Driver driver)
    • provider

      public static <Driver extends org.openqa.selenium.WebDriver> DeviceProvider<Driver> provider​(java.util.function.Supplier<Device<Driver>> supplier)
    • provider

      public static <Driver extends org.openqa.selenium.WebDriver> DeviceProvider<Driver> provider​(java.lang.String device, java.util.function.Supplier<Driver> supplier, java.util.function.Function<Driver,​org.openqa.selenium.remote.SessionId> session)
    • directProvider

      public static <Driver extends org.openqa.selenium.WebDriver> DeviceProvider<Driver> directProvider​(java.lang.String device, java.util.function.Supplier<Driver> supplier)
    • remoteProvider

      public static <Driver extends org.openqa.selenium.remote.RemoteWebDriver> DeviceProvider<Driver> remoteProvider​(java.lang.String device, java.util.function.Supplier<Driver> supplier)