* {{> pressKeyDown }}
(key)
| 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 }} |