Interface SupportsContextSwitching

All Superinterfaces:
ExecutesMethod, org.openqa.selenium.SearchContext, org.openqa.selenium.WebDriver
All Known Implementing Classes:
AndroidDriver, FlutterAndroidDriver, FlutterIOSDriver, IOSDriver

public interface SupportsContextSwitching extends org.openqa.selenium.WebDriver, ExecutesMethod
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.openqa.selenium.WebDriver

    org.openqa.selenium.WebDriver.Navigation, org.openqa.selenium.WebDriver.Options, org.openqa.selenium.WebDriver.TargetLocator, org.openqa.selenium.WebDriver.Timeouts, org.openqa.selenium.WebDriver.Window
  • Method Summary

    Modifier and Type
    Method
    Description
    default org.openqa.selenium.WebDriver
    Switches to the given context.
    default @Nullable String
    Get the name of the current context.
    default Set<String>
    Get the names of available contexts.

    Methods inherited from interface io.appium.java_client.ExecutesMethod

    execute, execute

    Methods inherited from interface org.openqa.selenium.WebDriver

    close, findElement, findElements, get, getCurrentUrl, getPageSource, getTitle, getWindowHandle, getWindowHandles, manage, navigate, quit, switchTo
  • Method Details

    • context

      default org.openqa.selenium.WebDriver context(String name)
      Switches to the given context.
      Parameters:
      name - The name of the context to switch to.
      Returns:
      self instance for chaining.
    • getContextHandles

      default Set<String> getContextHandles()
      Get the names of available contexts.
      Returns:
      List list of context names.
    • getContext

      default @Nullable String getContext()
      Get the name of the current context.
      Returns:
      Context name or null if it cannot be determined.