• I/O

  • Home
  • Developer Guide
  • API
  • Contribute
  • Link to GitHub
    • v3.4
    • v4.7
    • v4.8
    • v4.9
    • Latest
clear

action

addValueclearElementclickdoubleClickdragAndDropleftClickmiddleClickmoveToObjectrightClickselectByAttributeselectByIndexselectByValueselectByVisibleTextselectorExecuteselectorExecuteAsyncsetValuesubmitForm

cookie

deleteCookiegetCookiesetCookie

grid

getGridNodeDetailsgridProxyDetailsgridTestSession

mobile

backgroundcloseAppcontextcontextscurrentActivitydeviceKeyEventgetAppStringsgetCurrentDeviceActivitygetDeviceTimegetGeoLocationgetNetworkConnectiongetOrientationhideDeviceKeyboardholdinstallAppisAppInstalledisLockedlaunchlocklongPressKeycodeopenNotificationsorientationperformMultiActionperformTouchActionpressKeycodepullFilepullFolderpushFilereleaseremoveAppresetrotatesetGeoLocationsetImmediateValuesetNetworkConnectionsetOrientationsettingsshakestartActivitystringsswipeswipeDownswipeLeftswipeRightswipeUptoggleAirplaneModetoggleDatatoggleLocationServicestoggleTouchIdEnrollmenttoggleWiFitouchtouchActiontouchIdtouchMultiPerformtouchPerformunlock

property

getAttributegetCssPropertygetElementSizegetHTMLgetLocationgetLocationInViewgetSourcegetTagNamegetTextgetTitlegetUrlgetValue

protocol

alertAcceptalertDismissalertTextapplicationCacheStatusbackbuttonDownbuttonPressbuttonUpcookiedoDoubleClickelementelementActiveelementIdAttributeelementIdClearelementIdClickelementIdCssPropertyelementIdDisplayedelementIdElementelementIdElementselementIdEnabledelementIdLocationelementIdLocationInViewelementIdNameelementIdRectelementIdSelectedelementIdSizeelementIdTextelementIdValueelementsexecuteexecuteAsyncfileforwardframeframeParentimeActivateimeActivatedimeActiveEngineimeAvailableEnginesimeDeactivatedinitkeyslocalStoragelocalStorageSizelocationloglogTypesmoveTorefreshscreenshotsessionsessionStoragesessionStorageSizesessionssourcestatussubmittimeoutstimeoutsAsyncScripttimeoutsImplicitWaittitletouchClicktouchDowntouchFlicktouchLongClicktouchMovetouchScrolltouchUpurlwindowwindowHandlewindowHandleFullscreenwindowHandleMaximizewindowHandlePositionwindowHandleSizewindowHandles

state

hasFocusisEnabledisExistingisSelectedisVisibleisVisibleWithinViewport

utility

$$$addCommandcallchooseFiledebugendendAllgetCommandHistorypausereloadsaveScreenshotscrolluploadFilewaitForEnabledwaitForExistwaitForSelectedwaitForTextwaitForValuewaitForVisiblewaitUntil

window

closegetCurrentTabIdgetTabIdsgetViewportSizenewWindowsetViewportSizeswitchTab

dragAndDrop

Drag an item to a destination element. Note: this command only works for some drag&drop implementation and some browser because of the way how 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 @zeroload @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!