• I/O

  • Home
  • Developer Guide
  • API
  • Contribute
  • Link to GitHub
    • v3.4
    • v4.11
    • v4.12
    • v4.13
    • Latest
clear

action

addValueclearElementclickdoubleClickdragAndDropleftClickmiddleClickmoveToObjectrightClickselectByAttributeselectByIndexselectByValueselectByVisibleTextselectorExecuteselectorExecuteAsyncsetValuesubmitForm

cookie

deleteCookiegetCookiesetCookie

grid

getGridNodeDetailsgridProxyDetailsgridTestSession

mobile

backgroundcloseAppcontextcontextscurrentActivitydeviceKeyEventgetAppStringsgetCurrentDeviceActivitygetCurrentPackagegetDeviceTimegetGeoLocationgetNetworkConnectiongetOrientationhideDeviceKeyboardholdinstallAppisAppInstalledisLockedlaunchlocklongPressKeycodeopenNotificationsorientationperformMultiActionperformTouchActionpressKeycodepullFilepullFolderpushFilereleaseremoveAppresetrotatesetGeoLocationsetImmediateValuesetNetworkConnectionsetOrientationsettingsshakestartActivitystringsswipeswipeDownswipeLeftswipeRightswipeUptoggleAirplaneModetoggleDatatoggleLocationServicestoggleTouchIdEnrollmenttoggleWiFitouchtouchActiontouchIdtouchMultiPerformtouchPerformunlock

property

getAttributegetCssPropertygetElementSizegetHTMLgetLocationgetLocationInViewgetSourcegetTagNamegetTextgetTitlegetUrlgetValue

protocol

actionsalertAcceptalertDismissalertTextapplicationCacheStatusbackbuttonDownbuttonPressbuttonUpcookiedoDoubleClickelementelementActiveelementIdAttributeelementIdClearelementIdClickelementIdCssPropertyelementIdDisplayedelementIdElementelementIdElementselementIdEnabledelementIdLocationelementIdLocationInViewelementIdNameelementIdPropertyelementIdRectelementIdScreenshotelementIdSelectedelementIdSizeelementIdTextelementIdValueelementsexecuteexecuteAsyncfileforwardframeframeParentimeActivateimeActivatedimeActiveEngineimeAvailableEnginesimeDeactivatedinitkeyslocalStoragelocalStorageSizelocationloglogTypesmoveTorefreshscreenshotsessionsessionStoragesessionStorageSizesessionssourcestatussubmittimeoutstimeoutsAsyncScripttimeoutsImplicitWaittitletouchClicktouchDowntouchFlicktouchLongClicktouchMovetouchScrolltouchUpurlwindowwindowHandlewindowHandleFullscreenwindowHandleMaximizewindowHandlePositionwindowHandleSizewindowHandles

state

hasFocusisEnabledisExistingisSelectedisVisibleisVisibleWithinViewport

utility

$$$addCommandcallchooseFiledebugendendAllgetCommandHistorypausereloadsaveScreenshotscrolluploadFilewaitForEnabledwaitForExistwaitForSelectedwaitForTextwaitForValuewaitForVisiblewaitUntil

window

closegetCurrentTabIdgetTabIdsgetViewportSizenewWindowsetViewportSizeswitchTab
View Source Improve this doc

switchTab

Switch focus to a particular tab / window handle.

Usage

1
browser.switchTab([windowHandle]);

Parameters

Param Type Details
windowHandle
optional
String window handle URL to focus on (if no handle was specified the command switches to the first available one)

Uses

  • protocol/window
  • window/getTabIds
  • window/switchTab

This project is maintained by:

@WebdriverIO @bromann @georgeocrawford @vvoyer @camilotapia
Need help?

If you have questions or any problems using WebdriverIO join the Gitter Chat, hit us contributor on Twitter or just file an issue on Github. We will try to get back to you as soon as possible.
Also if you miss any feature, let us know so we can make WebdriverIO even better. For news or announcements check @WebdriverIO on Twitter.

We ♥ testing!