Interface SupportsCreateSessionTimeoutOption<T extends BaseOptions<T>>

  • All Superinterfaces:
    CanSetCapability<T>, org.openqa.selenium.Capabilities, java.io.Serializable
    All Known Implementing Classes:
    WindowsOptions

    public interface SupportsCreateSessionTimeoutOption<T extends BaseOptions<T>>
    extends org.openqa.selenium.Capabilities, CanSetCapability<T>
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.util.Optional<java.time.Duration> getCreateSessionTimeout()
      Get the timeout used to retry Appium Windows Driver session startup.
      default T setCreateSessionTimeout​(java.time.Duration timeout)
      Set the timeout used to retry Appium Windows Driver session startup.
      • Methods inherited from interface org.openqa.selenium.Capabilities

        asMap, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatform, getPlatformName, getVersion, is, merge
    • Field Detail

      • CREATE_SESSION_TIMEOUT_OPTION

        static final java.lang.String CREATE_SESSION_TIMEOUT_OPTION
        See Also:
        Constant Field Values
    • Method Detail

      • setCreateSessionTimeout

        default T setCreateSessionTimeout​(java.time.Duration timeout)
        Set the timeout used to retry Appium Windows Driver session startup. This capability could be used as a workaround for the long startup times of UWP applications (aka Failed to locate opened application window with appId: TestCompany.my_app4!App, and processId: 8480). Default value is 20000ms.
        Parameters:
        timeout - The timeout value.
        Returns:
        self instance for chaining.
      • getCreateSessionTimeout

        default java.util.Optional<java.time.Duration> getCreateSessionTimeout()
        Get the timeout used to retry Appium Windows Driver session startup.
        Returns:
        The timeout value.