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

question: Why does there need to be an application under test? #202

Open
kandji-joel opened this issue Apr 13, 2023 · 1 comment
Open

question: Why does there need to be an application under test? #202

kandji-joel opened this issue Apr 13, 2023 · 1 comment

Comments

@kandji-joel
Copy link

I've read through this https://github.com/appium/appium-mac2-driver#application-under-test-concept and various issues. I did look much into the code yet. Is there a technical reason why the mac2 drive requires an application under test?

I'm seeing some annoying behavior where find elements fail because the application under test is getting pushed out of focus by notifications. To workaround this, I basically had to write a wrapper that checks app state and activates the expected application prior to trying to find element. This isn't perfect though and still fails occasionally

@mykola-mokhnach
Copy link
Contributor

This concept is necessary to abstract https://developer.apple.com/documentation/xctest/xcuiapplication entity. Basically, for Apple's XCTest XCUIApplication must be always at the hierarchy root and all actions are performed on elements belonging to it.

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