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

Mac2Driver is not able to click a TextField element despite element is present stating "Check for interrupting elements affecting xxx" #203

Open
flyin-dance opened this issue Apr 20, 2023 · 0 comments

Comments

@flyin-dance
Copy link

I am using Appium and the Mac2Driver to test a macOS app. One of my tests is to test the sign-in functionality by clicking the username field (XCUIElementTypeTextField) and the password field (XCUIElementTypeSecureTextField) and providing the login cred then clicking the "Sign In" button. The driver is able to locate the username box but is not able to click it.

I turned on the Appium server log and saw something like below:

[HTTP] --> POST /wd/hub/session/a671fe87-39bf-4a57-ad6f-369b67e5bb07/element/7197B962-2EC4-4308-8A92-84D1FDE9C752/click
[HTTP] {"id":"7197B962-2EC4-4308-8A92-84D1FDE9C752"}
[W3C (a671fe87)] Driver proxy active, passing request on via HTTP proxy
[debug] [WD Proxy] Matched '/wd/hub/session/a671fe87-39bf-4a57-ad6f-369b67e5bb07/element/7197B962-2EC4-4308-8A92-84D1FDE9C752/click' to command name 'click'
[debug] [WD Proxy] Proxying [POST /wd/hub/session/a671fe87-39bf-4a57-ad6f-369b67e5bb07/element/7197B962-2EC4-4308-8A92-84D1FDE9C752/click] to [POST http://127.0.0.1:10100/session/5C4E467E-3BFF-40F3-8998-37F500B1192D/element/7197B962-2EC4-4308-8A92-84D1FDE9C752/click] with body: {"id":"7197B962-2EC4-4308-8A92-84D1FDE9C752"}
[debug] [WebDriverAgentMac] [xcodebuild] t =    31.86s Find the "Sign in" Button
[debug] [WebDriverAgentMac] [xcodebuild] t =    32.10s Click "Sign in" Button
[debug] [WebDriverAgentMac] [xcodebuild] t =    32.10s     Wait for <AUT> to idle
[debug] [WebDriverAgentMac] [xcodebuild] t =    32.11s     Find the "Sign in" Button
[debug] [WebDriverAgentMac] [xcodebuild] t =    32.31s     Check for interrupting elements affecting "Sign in" Button

Then it hangs there. I am not sure what the interrupting elements might be since there is no change at all from the UI.
Could someone please shed some light on what the issue might be, or where I should look into the issue?

Also this issue only started to happen after I upgraded my macOS to Ventura from Monterey, on Monterey the test ran fine.

code snippet used:

WebElement element = driver.findElement(By.className("XCUIElementTypeTextField")); // This will locate the username text box
element.click();
element.sendKeys("test@dummy.com");

Appium version: 1.22.3
Mac2Driver: 0.14.1
Xcode version: 14.2
macOS: Ventura 13.3

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

1 participant