appium-mac2-driver
appium-mac2-driver copied to clipboard
Сan't simulate pressing a shortcut
I'm trying to simulate pressing the shortcut - command+shift+g in the file save window, but it doesn't work either way.
I tried way mentioned in documentation, like this:
await browser.executeScript("macos: keys", [{ keys: [{ key: "g", modifierFlags: ((1 << 4) & (1 << 1)) }] } ])
but it doesn't work. Could you help me with it, please?
has you sloved it now?I have same question about simulate combine multi keys
Change the expression for modifierFlags to (1 << 4) | (1 << 1)