Apple Watch XCUITest press on Side Button

Hi everyone,

I have questions about UITesting in Apple Watch once again. Just discovered that apparently there is no API to press Side Button in XCUITest framework, is this correct? If yes, if there is another way to show "dock" menu or "application stack" on the Apple Watch?

Thank for your help and cheers

That is correct. We recently added support for the action button on the Apple Watch Ultra, but the closest we have to side button support is the home button, which works on iOS and watchOS.

https://developer.apple.com/documentation/xctest/xcuidevice/button/action

https://developer.apple.com/documentation/xctest/xcuidevice/button/home

Apple Watch XCUITest press on Side Button
 
 
Q