Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with sending a specific shortcut (Control + d + e + v) #304

Open
superaleks opened this issue Jun 24, 2024 · 4 comments
Open

Issue with sending a specific shortcut (Control + d + e + v) #304

superaleks opened this issue Jun 24, 2024 · 4 comments

Comments

@superaleks
Copy link

Hi team,

As a part of one of automation projects for a Mac app we are working on, I've got to enable a specific environment by hitting Control + d + e + v key combination.
I've tried the following as per documentation:

await browser.executeScript("macos: keys", [{ keys: [{ key: "d", modifierFlags: (1 << 2 )}, { key: "e", modifierFlags: (1 << 2 )}, { key: "v", modifierFlags: (1 << 2 )} ] } ]);

I can hear that some keyboard event is sent but I don't know exactly what, and I can't get info in the logs.
Is this the correct way of hitting this key combo? Or is there something else?

@mykola-mokhnach
Copy link
Contributor

You may check the xcuitest logs by enabling the appium:showServerLogs capability

@superaleks
Copy link
Author

I already have this enabled but I see no logs on what key combination is pressed.

@mykola-mokhnach
Copy link
Contributor

I don't have any other ideas, we completely rely on XCTest there. You may also try to run an AppleScript snippet as a possible alternative

@superaleks
Copy link
Author

So what you are saying is that this issue is opened on the wrong board @mykola-mokhnach ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants