* {{> pressKeyUp }}
(key)
| 2196 | * {{> pressKeyUp }} |
| 2197 | */ |
| 2198 | async pressKeyUp(key) { |
| 2199 | key = getNormalizedKey.call(this, key) |
| 2200 | if (!this.browser.isW3C) { |
| 2201 | return this.browser.sendKeys([key]) |
| 2202 | } |
| 2203 | return this.browser.performActions([ |
| 2204 | { |
| 2205 | type: 'key', |
| 2206 | id: 'keyboard', |
| 2207 | actions: [ |
| 2208 | { |
| 2209 | type: 'keyUp', |
| 2210 | value: key, |
| 2211 | }, |
| 2212 | ], |
| 2213 | }, |
| 2214 | ]) |
| 2215 | } |
| 2216 | |
| 2217 | /** |
| 2218 | * _Note:_ In case a text field or textarea is focused be aware that some browsers do not respect active modifier when combining modifier keys with other keys. |