Interface SupportsEnsureWebviewsHavePagesOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.Serializable
- All Known Implementing Classes:
EspressoOptions
,UiAutomator2Options
public interface SupportsEnsureWebviewsHavePagesOption<T extends BaseOptions<T>> extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ENSURE_WEBVIEWS_HAVE_PAGES_OPTION
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.Optional<java.lang.Boolean>
doesEnsureWebviewsHavePages()
Get whether to ensure if web views have pages.default T
ensureWebviewsHavePages()
Set to skip web views that have no pages from being shown in getContexts output.default T
setEnsureWebviewsHavePages(boolean value)
Whether to skip web views that have no pages from being shown in getContexts output.-
Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapability
-
-
-
-
Field Detail
-
ENSURE_WEBVIEWS_HAVE_PAGES_OPTION
static final java.lang.String ENSURE_WEBVIEWS_HAVE_PAGES_OPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
ensureWebviewsHavePages
default T ensureWebviewsHavePages()
Set to skip web views that have no pages from being shown in getContexts output.- Returns:
- self instance for chaining.
-
setEnsureWebviewsHavePages
default T setEnsureWebviewsHavePages(boolean value)
Whether to skip web views that have no pages from being shown in getContexts output. The driver uses devtools connection to retrieve the information about existing pages. true by default since Appium 1.19.0, false if lower than 1.19.0.- Parameters:
value
- Whether to ensure if web views have pages.- Returns:
- self instance for chaining.
-
doesEnsureWebviewsHavePages
default java.util.Optional<java.lang.Boolean> doesEnsureWebviewsHavePages()
Get whether to ensure if web views have pages.- Returns:
- True or false.
-
-