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 -
Method Summary
Modifier and TypeMethodDescriptionGet whether to use native screenshots in web view context.default TEnforce to use screenshoting endpoint provided by UiAutomator framework rather than the one provided by chromedriver.default TsetNativeWebScreenshot(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, setCapabilityMethods inherited from interface org.openqa.selenium.Capabilities
asMap, get, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatformName, is, merge, required
-
Field Details
-
NATIVE_WEB_SCREENSHOT_OPTION
- See Also:
-
-
Method Details
-
nativeWebScreenshot
Enforce to use screenshoting endpoint provided by UiAutomator framework rather than the one provided by chromedriver.- Returns:
- self instance for chaining.
-
setNativeWebScreenshot
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
Get whether to use native screenshots in web view context.- Returns:
- True or false.
-