Closed suneel944 closed 1 week ago
What the result of page source when the error occurred?
It looks like... the error itself could come from XCTest framework / Accessibility stuff internal by iOS side: https://www.google.com/search?q=kAXErrorServerNotFound+XCUITest&sca_esv=81b62b241f3359c7&ei=tXwIZ7QR09bQ8Q-Gq_OpAg&ved=0ahUKEwj0v4OHlIWJAxVTKzQIHYbVPCUQ4dUDCA8&uact=5&oq=kAXErrorServerNotFound+XCUITest&gs_lp=Egxnd3Mtd2l6LXNlcnAiH2tBWEVycm9yU2VydmVyTm90Rm91bmQgWENVSVRlc3QyBRAhGKABMgUQIRigATIFECEYoAEyBRAhGKABMgUQIRigAUj0FVCAAVidFHABeACQAQCYAWugAa8GqgEDNy4yuAEDyAEA-AEBmAIJoALBBsICCBAAGIAEGKIEmAMAiAYBkgcDNS40oAfsHQ&sclient=gws-wiz-serp
I assume it is not possible to get the page source or interact with this app in any way. The above error usually indicates the app is not automatable and must be fixed.
ok its a jailbroken app and here is the link of the app which I was trying to automate and capture element locators in appium inspector which was futile and not helpful as I got the kAXErrorServerNotFound
.
the inspector fails load the screen sanpshot to fetch the elements and also while automating using the code, the app gets launched using the bundle_id, and it will not come to foreground and stays in background and i need to force it come to foreground using the driver.activate_app('cn.tinyapps.RST')
but the later actions fail to register with regards to element interaction with kAXErrorServerNotFound
ios jailbreaking app: https://palera.in/
App link: https://www.ios-repo-updates.com/repository/bigboss/package/cn.tinyapps.rst/
We haven't tested the jailbreak environment, so it could be environment-specific...?
The error itself could occur in vanilla XCTest https://stackoverflow.com/questions/58757558/xcode-11-xcuitest-failed-to-get-matching-snapshots-error-getting-main-window-ka https://discuss.bitrise.io/t/xcuitest-kaxerrorservernotfound/11338 Some googled links said it could depend on the iOS and app side stuff like if the OS could scan? the UI elements.
the app gets launched using the bundle_id, and it will not come to foreground and stays in background and i need to force it come to foreground using the driver.activate_app('cn.tinyapps.RST')
I'm wondering if something weird app state occurred at the initial launching time. Then, accessibility services behind OS had an issue to scan the elements etc.
Perhaps it would be nice to check the device log
Closing this issue itself as perhaps OS and app related rather than Appium itself. (feel free to keep posting comments)
The problem
I am trying to automate a jailbroken ios that is a rootless one using palera1n and the command used to jail break rootless -->
palera1n -l
(its L small case) and I am using iPhone 8 for automation purpose and below are some of the details which might be handy:Environment
xcuitest@7.27.0 [installed (npm)]
Real device
Details
Appium inspector state:
appium inspector version:
I am not able to inspect the elements for a specific side loaded application and the device is jailbroken. The appium inspector fails to pick up the page source of the application
Appium Logs
Code To reproduce issue