Interface SupportsEnsureWebviewsHavePagesOption<T extends BaseOptions<T>>

All Superinterfaces:
CanSetCapability<T>, org.openqa.selenium.Capabilities, 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 final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default Optional<Boolean>
    Get whether to ensure if web views have pages.
    default T
    Set to skip web views that have no pages from being shown in getContexts output.
    default T
    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

    Methods inherited from interface org.openqa.selenium.Capabilities

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

  • Method Details

    • 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 Optional<Boolean> doesEnsureWebviewsHavePages()
      Get whether to ensure if web views have pages.
      Returns:
      True or false.