MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / doubleClick

Method doubleClick

lib/helper/WebDriver.js:1122–1135  ·  view source on GitHub ↗

* {{> doubleClick }} *

(locator, context = null)

Source from the content-addressed store, hash-verified

1120 *
1121 */
1122 async doubleClick(locator, context = null) {
1123 const locateFn = prepareLocateFn.call(this, context)
1124
1125 const res = await findClickable.call(this, locator, locateFn)
1126 if (context) {
1127 assertElementExists(res, locator, 'Clickable element', `was not found inside element ${new Locator(context)}`)
1128 } else {
1129 assertElementExists(res, locator, 'Clickable element')
1130 }
1131
1132 const elem = selectElement(res, locator, this)
1133 highlightActiveElement.call(this, elem)
1134 return elem.doubleClick()
1135 }
1136
1137 /**
1138 * {{> rightClick }}

Callers

nothing calls this directly

Calls 2

selectElementFunction · 0.90
assertElementExistsFunction · 0.70

Tested by

no test coverage detected