Interface SupportsNativeWebScreenshotOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.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 java.lang.String
NATIVE_WEB_SCREENSHOT_OPTION
-
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 io.appium.java_client.remote.options.CanSetCapability
amend, setCapability
-
-
-
-
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.
-
-