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

All wda mac interface sets #283

Open
HaoWShi opened this issue Feb 26, 2024 · 6 comments
Open

All wda mac interface sets #283

HaoWShi opened this issue Feb 26, 2024 · 6 comments
Labels
question Further information is requested

Comments

@HaoWShi
Copy link

HaoWShi commented Feb 26, 2024

I would like to know where I can see all the current set of interfaces? anybody know?

@HaoWShi
Copy link
Author

HaoWShi commented Feb 27, 2024

I have read the files in https://github.com/appium/appium-mac2-driver/tree/master/WebDriverAgentMac/WebDriverAgentLib/Commands.
In fact I mean https://github.com/appium/appium-mac2-driver/blob/master/lib/commands/app-management.js , there are interface I can use.
The interface you mentioned, how should I use it?

@KazuCocoa
Copy link
Member

@KazuCocoa KazuCocoa added the question Further information is requested label Feb 27, 2024
@HaoWShi
Copy link
Author

HaoWShi commented Feb 28, 2024

Yes, It is what I want, I will read them firstly. Thank you very much
By the way, I noticed the locked/unlock/lock interface on the phone, but on the Mac, I don't see it. Is it not supported? Or is it another interface?

@KazuCocoa
Copy link
Member

XCUITest driver achieves it with https://developer.apple.com/documentation/xctest/xcuidevice?language=objc but it looks like the documentation does not say macOS support it. So potentially macOS has no method to lock the screen over XCTest framework

@KazuCocoa
Copy link
Member

Instead, for lock, I wondered if Control-Command-Q: Immediately lock your screen. works
https://support.apple.com/en-us/HT201236
https://github.com/appium/appium-mac2-driver?tab=readme-ov-file#macos-keys

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

No branches or pull requests

2 participants