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

Method pressKeyDown

lib/helper/WebDriver.js:2176–2193  ·  view source on GitHub ↗

* {{> pressKeyDown }}

(key)

Source from the content-addressed store, hash-verified

2174 * {{> pressKeyDown }}
2175 */
2176 async pressKeyDown(key) {
2177 key = getNormalizedKey.call(this, key)
2178 if (!this.browser.isW3C) {
2179 return this.browser.sendKeys([key])
2180 }
2181 return this.browser.performActions([
2182 {
2183 type: 'key',
2184 id: 'keyboard',
2185 actions: [
2186 {
2187 type: 'keyDown',
2188 value: key,
2189 },
2190 ],
2191 },
2192 ])
2193 }
2194
2195 /**
2196 * {{> pressKeyUp }}

Callers 1

pressKeyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected