Interface SupportsIncludeDeviceCapsToSessionInfoOption<T extends BaseOptions<T>>

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

    public interface SupportsIncludeDeviceCapsToSessionInfoOption<T extends BaseOptions<T>>
    extends org.openqa.selenium.Capabilities, CanSetCapability<T>
    • Field Detail

      • INCLUDE_DEVICE_CAPS_TO_SESSION_INFO_OPTION

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

      • setIncludeDeviceCapsToSessionInfo

        default T setIncludeDeviceCapsToSessionInfo​(boolean value)
        Whether to include screen information as the result of Get Session Capabilities. It includes pixelRatio, statBarHeight and viewportRect, but it causes an extra API call to WDA which may increase the response time. Defaults to true.
        Parameters:
        value - Whether to include screen information as the result of Get Session Capabilities.
        Returns:
        self instance for chaining.
      • doesIncludeDeviceCapsToSessionInfo

        default java.util.Optional<java.lang.Boolean> doesIncludeDeviceCapsToSessionInfo()
        Get whether to include screen information as the result of Get Session Capabilities.
        Returns:
        True or false.