Package io.appium.java_client.remote
Interface SupportsContextSwitching
- All Superinterfaces:
ExecutesMethod,org.openqa.selenium.SearchContext,org.openqa.selenium.WebDriver
- All Known Implementing Classes:
AndroidDriver,FlutterAndroidDriver,FlutterIOSDriver,IOSDriver
-
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 TypeMethodDescriptiondefault org.openqa.selenium.WebDriverSwitches to the given context.default @Nullable StringGet the name of the current context.Get the names of available contexts.Methods inherited from interface io.appium.java_client.ExecutesMethod
execute, executeMethods inherited from interface org.openqa.selenium.WebDriver
close, findElement, findElements, get, getCurrentUrl, getPageSource, getTitle, getWindowHandle, getWindowHandles, manage, navigate, quit, switchTo
-
Method Details
-
context
Switches to the given context.- Parameters:
name- The name of the context to switch to.- Returns:
- self instance for chaining.
-
getContextHandles
Get the names of available contexts.- Returns:
- List list of context names.
-
getContext
Get the name of the current context.- Returns:
- Context name or null if it cannot be determined.
-