Interface SupportsNativeWebScreenshotOption<T extends BaseOptions<T>>

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.util.Optional<java.lang.Boolean> doesNativeWebScreenshot()
      Get whether to use native screenshots in web view context.
      default T nativeWebScreenshot()
      Enforce to use screenshoting endpoint provided by UiAutomator framework rather than the one provided by chromedriver.
      default T setNativeWebScreenshot​(boolean value)
      Whether to use screenshoting endpoint provided by UiAutomator framework (true) rather than the one provided by chromedriver (false, the default value).
      • Methods inherited from interface org.openqa.selenium.Capabilities

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

      • NATIVE_WEB_SCREENSHOT_OPTION

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

      • nativeWebScreenshot

        default T nativeWebScreenshot()
        Enforce to use screenshoting endpoint provided by UiAutomator framework rather than the one provided by chromedriver.
        Returns:
        self instance for chaining.
      • setNativeWebScreenshot

        default T setNativeWebScreenshot​(boolean value)
        Whether to use screenshoting endpoint provided by UiAutomator framework (true) rather than the one provided by chromedriver (false, the default value). Use it when you experience issues with the latter.
        Parameters:
        value - Whether to use native screenshots in web view context.
        Returns:
        self instance for chaining.
      • doesNativeWebScreenshot

        default java.util.Optional<java.lang.Boolean> doesNativeWebScreenshot()
        Get whether to use native screenshots in web view context.
        Returns:
        True or false.