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

[iOS 13.3 only] Cannot find elements on Auth0 page with error XCTDaemonErrorDomain Code=11 #13731

Closed
nimaiwalsh opened this issue Dec 16, 2019 · 15 comments
Labels
ThirdParty upstream problems XCUITest regarding xcuitest driver

Comments

@nimaiwalsh
Copy link

nimaiwalsh commented Dec 16, 2019

The problem

Appium is not able to locate elements on a AuthO Salesforce page on iOS 13.3. It has worked on all previous iOS versions. When appium is not running, you can easily manually click and enter details into the text inputs and use the page.

This also occurs when using the Element Inspector with Appium Studio, no elements can be located and the screen appears to freeze.

Environment

  • Appium : 1.15.1
  • MacOS Catalina 10.15.1:
  • Node.js version: 10.17.0
  • Yarn 1.19.1
  • Apple iPhone 7 iOS 13.3 only:

Details

Error in logs when trying find the elements on the page using driver.pageSource()

[Xcode] 2019-12-17 08:18:03.043097+1000 WebDriverAgentRunner-Runner[1256:255088] Cannot request the screen point at NSPoint: {187.5, 525.74933333333331}: Error Domain=XCTDaemonErrorDomain Code=11 "No AXElement found at {188 526}: kAXErrorCannotComplete" UserInfo={NSLocalizedDescription=No AXElement found at {188 526}: kAXErrorCannotComplete}

It appears similar to this issue: facebookarchive/WebDriverAgent#372 and also occurs when an Auth0 pop up page for Salesforce is displayed.

@nimaiwalsh nimaiwalsh changed the title Cannot find elements on Auth0 page with error XCTDaemonErrorDomain Code=11 [iOS 13.3 only] Cannot find elements on Auth0 page with error XCTDaemonErrorDomain Code=11 Dec 16, 2019
@mykola-mokhnach
Copy link
Collaborator

You could try the solution from #13681 as the possible workaround. We cannot do much there on Appium side there since the error is caused by XCTest itself

@mykola-mokhnach mykola-mokhnach added ThirdParty upstream problems XCUITest regarding xcuitest driver labels Dec 16, 2019
@KS261187
Copy link

@nimaiwalsh nimaiwalsh, any luck with this issue?. I am also facing the same issue and I did followed the steps mentioned in 13681 but it is of no help.

@nimaiwalsh
Copy link
Author

Hi @KS261187 unfortunately nothing yet. We currently have to hold off all testing on iOS 13.3 until we can also figure out a solution. We also run many of our tests on AWS Device Farm. I will post in this thread if we can come up with a fix.

@mykola-mokhnach
Copy link
Collaborator

Closed as third party issue

@KS261187
Copy link

So if i am not wrong, your app is built using ionic framework correct?. The reason I am asking this is we have similar apps built using phone gap and ionic and both these apps are not working with 13.3. However I tried downloading other phone gap apps from App Store and it is working fine as expected. Really clueless at this point.

@nimaiwalsh
Copy link
Author

nimaiwalsh commented Dec 28, 2019

Our app is built using Xamarin and is currently a mixture of Forms and Native. Yer I’m completely clueless too considering everything was previously working fine. At this stage it is only an Auth0 pop-up that is causing the issue, unfortunately for tests to start we require the user to be logged in 😂

@KS261187
Copy link

KS261187 commented Dec 28, 2019

So did you try to login manually and try inspecting the objects. For me the app freezes but I can certainly try to set the auto launch to false and login manually. Just want to see if you tried that route?
Another thing common i can see is that my app also makes a call to sales force . Not sure if that has anything to do here. Where you able to check with your developers regarding the same. Appreciate your response on the same as you are my only source of contact to talk regarding this issue.

@nimaiwalsh
Copy link
Author

Yes I can login manually and it works like a charm. However if I log in manually, and inspect the Salesforce Auth0 pop up with Appium Inspector it sort of freezes up too. It’s not until I close Appium Inspector down and restart the app the it works correctly again. Manually login is not viable for our tests so we definitely need to get this fixed moving forward too.

@KS261187
Copy link

So i got a hunch. Looks like the issue is with the textbox in 13.3. I logged in manually and went to a page where there is no textfield and it worked like a charm. Please give it a try where there is no textfield and try to inspect on that page.

@nimaiwalsh
Copy link
Author

Hi @KS261187,

Yer the Salesforce Auth0 page has a text box to input credentials. This is the page we are having issues with. If the user is already logged in, all the other elements are found and the tests work as expected. Any other ideas?

@KS261187
Copy link

KS261187 commented Jan 2, 2020

I guess this is a bug with Apple . I can already see most of the people reported the same issue both with web and native view under xcuitest forum. Looks like they broke the text fields completely with iOS 13.3. Let’s hope they fix this with Xcode 12. Let me know if you have got any ideas but for now all we can do is to wait for the fix from their end.

@nimaiwalsh
Copy link
Author

nimaiwalsh commented Jan 2, 2020

Thanks. Let's hope the release another update shortly to fix the issue 😄

@KS261187
Copy link

So suddenly my app started to work with iOS 13.3. All I did was uninstall the Appium beta, reinstall Appium beta and updated the node version to 13.6 and then started using the inspector using custom server and it started to show up fine. The issue is still there with Appium 1.15.1. So don't use that.

@nimaiwalsh
Copy link
Author

Thanks for the tip,

I just updated Appium to the latest minor release as mentioned (1.16) and reinstalled webdriveragentrunner on the device and now it is all working as expected.

@KS261187
Copy link

KS261187 commented Jan 14, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ThirdParty upstream problems XCUITest regarding xcuitest driver
Projects
None yet
Development

No branches or pull requests

3 participants