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
public interface SupportsContextSwitching extends org.openqa.selenium.WebDriver, ExecutesMethod
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default org.openqa.selenium.WebDriver
context(java.lang.String name)
Switches to the given context.default @Nullable java.lang.String
getContext()
Get the name of the current context.default java.util.Set<java.lang.String>
getContextHandles()
Get the names of available contexts.-
Methods inherited from interface io.appium.java_client.ExecutesMethod
execute, execute
-
-
-
-
Method Detail
-
context
default org.openqa.selenium.WebDriver context(java.lang.String name)
Switches to the given context.- Parameters:
name
- The name of the context to switch to.- Returns:
- self instance for chaining.
-
getContextHandles
default java.util.Set<java.lang.String> getContextHandles()
Get the names of available contexts.- Returns:
- List list of context names.
-
getContext
default @Nullable java.lang.String getContext()
Get the name of the current context.- Returns:
- Context name or null if it cannot be determined.
-
-