• I/O

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

action

addValueaddValueaddValueclearElementclearElementclearElementclickclickclickdoubleClickdoubleClickdoubleClickdragAndDropdragAndDropdragAndDropleftClickleftClickleftClickmiddleClickmiddleClickmiddleClickmoveToObjectmoveToObjectmoveToObjectrightClickrightClickrightClickselectByAttributeselectByAttributeselectByAttributeselectByIndexselectByIndexselectByIndexselectByValueselectByValueselectByValueselectByVisibleTextselectByVisibleTextselectByVisibleTextselectorExecuteselectorExecuteselectorExecuteselectorExecuteAsyncselectorExecuteAsyncselectorExecuteAsyncsetValuesetValuesetValuesubmitFormsubmitFormsubmitForm

cookie

deleteCookiedeleteCookiedeleteCookiegetCookiegetCookiegetCookiesetCookiesetCookiesetCookie

grid

getGridNodeDetailsgetGridNodeDetailsgetGridNodeDetailsgridProxyDetailsgridProxyDetailsgridProxyDetailsgridTestSessiongridTestSessiongridTestSession

mobile

backgroundbackgroundbackgroundcloseAppcloseAppcloseAppcontextcontextcontextcontextscontextscontextscurrentActivitycurrentActivitycurrentActivitydeviceKeyEventdeviceKeyEventdeviceKeyEventgetAppStringsgetAppStringsgetAppStringsgetCurrentDeviceActivitygetCurrentDeviceActivitygetCurrentDeviceActivitygetCurrentPackagegetCurrentPackagegetCurrentPackagegetDeviceTimegetDeviceTimegetDeviceTimegetGeoLocationgetGeoLocationgetGeoLocationgetNetworkConnectiongetNetworkConnectiongetNetworkConnectiongetOrientationgetOrientationgetOrientationhideDeviceKeyboardhideDeviceKeyboardhideDeviceKeyboardholdholdholdinstallAppinstallAppinstallAppisAppInstalledisAppInstalledisAppInstalledisLockedisLockedisLockedlaunchlaunchlaunchlocklocklocklongPressKeycodelongPressKeycodelongPressKeycodeopenNotificationsopenNotificationsopenNotificationsorientationorientationorientationperformMultiActionperformMultiActionperformMultiActionperformTouchActionperformTouchActionperformTouchActionpressKeycodepressKeycodepressKeycodepullFilepullFilepullFilepullFolderpullFolderpullFolderpushFilepushFilepushFilereleasereleasereleaseremoveAppremoveAppremoveAppresetresetresetrotaterotaterotatesetGeoLocationsetGeoLocationsetGeoLocationsetImmediateValuesetImmediateValuesetImmediateValuesetNetworkConnectionsetNetworkConnectionsetNetworkConnectionsetOrientationsetOrientationsetOrientationsettingssettingssettingsshakeshakeshakestartActivitystartActivitystartActivitystringsstringsstringsswipeswipeswipeswipeDownswipeDownswipeDownswipeLeftswipeLeftswipeLeftswipeRightswipeRightswipeRightswipeUpswipeUpswipeUptoggleAirplaneModetoggleAirplaneModetoggleAirplaneModetoggleDatatoggleDatatoggleDatatoggleLocationServicestoggleLocationServicestoggleLocationServicestoggleTouchIdEnrollmenttoggleTouchIdEnrollmenttoggleTouchIdEnrollmenttoggleWiFitoggleWiFitoggleWiFitouchtouchtouchtouchActiontouchActiontouchActiontouchIdtouchIdtouchIdtouchMultiPerformtouchMultiPerformtouchMultiPerformtouchPerformtouchPerformtouchPerformunlockunlockunlock

property

getAttributegetAttributegetAttributegetCssPropertygetCssPropertygetCssPropertygetElementSizegetElementSizegetElementSizegetHTMLgetHTMLgetHTMLgetLocationgetLocationgetLocationgetLocationInViewgetLocationInViewgetLocationInViewgetSourcegetSourcegetSourcegetTagNamegetTagNamegetTagNamegetTextgetTextgetTextgetTitlegetTitlegetTitlegetUrlgetUrlgetUrlgetValuegetValuegetValue

protocol

actionsactionsactionsalertAcceptalertAcceptalertAcceptalertDismissalertDismissalertDismissalertTextalertTextalertTextapplicationCacheStatusapplicationCacheStatusapplicationCacheStatusbackbackbackbuttonDownbuttonDownbuttonDownbuttonPressbuttonPressbuttonPressbuttonUpbuttonUpbuttonUpcookiecookiecookiedoDoubleClickdoDoubleClickdoDoubleClickelementelementelementelementActiveelementActiveelementActiveelementIdAttributeelementIdAttributeelementIdAttributeelementIdClearelementIdClearelementIdClearelementIdClickelementIdClickelementIdClickelementIdCssPropertyelementIdCssPropertyelementIdCssPropertyelementIdDisplayedelementIdDisplayedelementIdDisplayedelementIdElementelementIdElementelementIdElementelementIdElementselementIdElementselementIdElementselementIdEnabledelementIdEnabledelementIdEnabledelementIdLocationelementIdLocationelementIdLocationelementIdLocationInViewelementIdLocationInViewelementIdLocationInViewelementIdNameelementIdNameelementIdNameelementIdPropertyelementIdPropertyelementIdPropertyelementIdRectelementIdRectelementIdRectelementIdScreenshotelementIdScreenshotelementIdScreenshotelementIdSelectedelementIdSelectedelementIdSelectedelementIdSizeelementIdSizeelementIdSizeelementIdTextelementIdTextelementIdTextelementIdValueelementIdValueelementIdValueelementselementselementsexecuteexecuteexecuteexecuteAsyncexecuteAsyncexecuteAsyncfilefilefileforwardforwardforwardframeframeframeframeParentframeParentframeParentimeActivateimeActivateimeActivateimeActivatedimeActivatedimeActivatedimeActiveEngineimeActiveEngineimeActiveEngineimeAvailableEnginesimeAvailableEnginesimeAvailableEnginesimeDeactivatedimeDeactivatedimeDeactivatedinitinitinitkeyskeyskeyslocalStoragelocalStoragelocalStoragelocalStorageSizelocalStorageSizelocalStorageSizelocationlocationlocationloglogloglogTypeslogTypeslogTypesmoveTomoveTomoveTorefreshrefreshrefreshscreenshotscreenshotscreenshotsessionsessionsessionsessionStoragesessionStoragesessionStoragesessionStorageSizesessionStorageSizesessionStorageSizesessionssessionssessionssourcesourcesourcestatusstatusstatussubmitsubmitsubmittimeoutstimeoutstimeoutstimeoutsAsyncScripttimeoutsAsyncScripttimeoutsAsyncScripttimeoutsImplicitWaittimeoutsImplicitWaittimeoutsImplicitWaittitletitletitletouchClicktouchClicktouchClicktouchDowntouchDowntouchDowntouchFlicktouchFlicktouchFlicktouchLongClicktouchLongClicktouchLongClicktouchMovetouchMovetouchMovetouchScrolltouchScrolltouchScrolltouchUptouchUptouchUpurlurlurlwindowwindowwindowwindowHandlewindowHandlewindowHandlewindowHandleFullscreenwindowHandleFullscreenwindowHandleFullscreenwindowHandleMaximizewindowHandleMaximizewindowHandleMaximizewindowHandlePositionwindowHandlePositionwindowHandlePositionwindowHandleSizewindowHandleSizewindowHandleSizewindowHandleswindowHandleswindowHandles

state

hasFocushasFocushasFocusisEnabledisEnabledisEnabledisExistingisExistingisExistingisSelectedisSelectedisSelectedisVisibleisVisibleisVisibleisVisibleWithinViewportisVisibleWithinViewportisVisibleWithinViewport

utility

$$$$$$$$$addCommandaddCommandaddCommandcallcallcallchooseFilechooseFilechooseFiledebugdebugdebugendendendendAllendAllendAllgetCommandHistorygetCommandHistorygetCommandHistorypausepausepausereloadreloadreloadsaveScreenshotsaveScreenshotsaveScreenshotscrollscrollscrolluploadFileuploadFileuploadFilewaitForEnabledwaitForEnabledwaitForEnabledwaitForExistwaitForExistwaitForExistwaitForSelectedwaitForSelectedwaitForSelectedwaitForTextwaitForTextwaitForTextwaitForValuewaitForValuewaitForValuewaitForVisiblewaitForVisiblewaitForVisiblewaitUntilwaitUntilwaitUntil

window

closecloseclosegetCurrentTabIdgetCurrentTabIdgetCurrentTabIdgetTabIdsgetTabIdsgetTabIdsgetViewportSizegetViewportSizegetViewportSizenewWindownewWindownewWindowsetViewportSizesetViewportSizesetViewportSizeswitchTabswitchTabswitchTab

dragAndDrop

Drag an item to a destination element. Note: this command only works for some drag&drop implementations and some browsers because of the way Selenium simulates mouse events.

Usage

1
browser.dragAndDrop(sourceElem,destinationElem);

Parameters

Param Type Details
sourceElem String source selector
destinationElem String destination selector

Uses

  • action/moveToObject
  • protocol/buttonDown
  • protocol/buttonUp
  • property/getLocation
  • protocol/touchDown
  • protocol/touchMove
  • protocol/touchUp

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!