Interface SupportsNativeWebScreenshotOption<T extends BaseOptions<T>>

All Superinterfaces:
CanSetCapability<T>, org.openqa.selenium.Capabilities, Serializable
All Known Implementing Classes:
EspressoOptions, UiAutomator2Options

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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default Optional<Boolean>
    Get whether to use native screenshots in web view context.
    default T
    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 io.appium.java_client.remote.options.CanSetCapability

    amend, setCapability

    Methods inherited from interface org.openqa.selenium.Capabilities

    asMap, get, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatformName, is, merge, required
  • Field Details

  • Method Details

    • 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 Optional<Boolean> doesNativeWebScreenshot()
      Get whether to use native screenshots in web view context.
      Returns:
      True or false.