withContext
IContextActions
IContextActions contextActions = ContextActions.withContext ();
HYBRID
boyka-config.json
{ "ui": { "timeout": { // ... }, "logging": { // ... }, "screenshot": { // ... }, "web": { // ... }, "mobile": { "device_config": { "server": { // ... }, "device": { // ... "swipe": { // ... }, "application": { // ... // highlight-next-line "type": "HYBRID" }, "virtual_device": { // ... } } } } }, "api": { // ... } }
contexts
import static io.github.boykaframework.actions.drivers.ContextActions.withContext; . . . var contextList = withContext ().contexts ();
currentContext
import static io.github.boykaframework.actions.drivers.ContextActions.withContext; . . . var contextName = withContext ().currentContext ();
switchToNative
import static io.github.boykaframework.actions.drivers.ContextActions.withContext; . . . withContext ().switchToNative ();
switchToWebView (name)
import static io.github.boykaframework.actions.drivers.ContextActions.withContext; . . . withContext ().switchToWebView ("WEBVIEW_xxxx");
switchToWebView
import static io.github.boykaframework.actions.drivers.ContextActions.withContext; . . . withContext ().switchToWebView ();
Was this page helpful?