You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to be able to do key combos using browser.sendKeys() and the Key enum to simulate typing on a keyboard.
Additionally I need to send different key combinations depending on the platform the test script will run on.
Command-Key combos might not be possible on mac, but there are still plenty of web-apps which handle keyboard input directly for key combos. puppeteer/puppeteer#1313
When developing the test script using Element on my Mac I'd copy something with CMD-C, but when the script runs on flood.io it'll be running under linux, where the equivalent combo is CTRL-C. This point may be moot depending on puppeteer#1313
A simple API would be to allow grouping sendKeys inputs into arrays: browser.sendKeys( [Key.CONTROL, "A"] ) would press CTRL-A
It also appears that the above keyboard functionality is the preferred method in Puppeteer for doing key combinations with the added accuracy of using delay times too (if needed).
I'd like to be able to do key combos using
browser.sendKeys()
and theKey
enum to simulate typing on a keyboard.Additionally I need to send different key combinations depending on the platform the test script will run on.
Command-Key combos might not be possible on mac, but there are still plenty of web-apps which handle keyboard input directly for key combos.
puppeteer/puppeteer#1313
When developing the test script using Element on my Mac I'd copy something with CMD-C, but when the script runs on flood.io it'll be running under linux, where the equivalent combo is CTRL-C. This point may be moot depending on puppeteer#1313
A simple API would be to allow grouping
sendKeys
inputs into arrays:browser.sendKeys( [Key.CONTROL, "A"] )
would press CTRL-ANot all keys listed are included in the Key enum
The text was updated successfully, but these errors were encountered: