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 app elements doesn't appear in the app source hierarchy #14819

Closed
kalyan7h opened this issue Oct 19, 2020 · 6 comments
Closed

IOS app elements doesn't appear in the app source hierarchy #14819

kalyan7h opened this issue Oct 19, 2020 · 6 comments
Labels
ThirdParty upstream problems XCUITest regarding xcuitest driver

Comments

@kalyan7h
Copy link

I've a mobile screen with some 100+ transaction rows. Some 10 are visible on the screen, user has to scroll down to see the rest.
When i inspect any element thru appium inspector, the controls don't appear in source hierarchy. [issue seen only on this screen]
Appium Version: v1.18.3 (same issue seen with appium version v1.17 too)
IOS simulator Version: 13.3

Capabilities
"platformName": "ios",
"platformVersion": "13.3",
"deviceName": "iPhone Simulator",
"app": "/Users/kgrandhi/Downloads/appFile.zip",
"noReset": true,
"automationName": "XCUITest",
"bundleId": "com.XXX.XXX"

The same issue doesn't appear with the below combination, but the inspector takes its own time to present the app hierarchy.
Appium Version:v1.15.1
IOS simulator Version: 11.2

My requirement is to run the scripts with the latest appium version and on IOS version 13.2 or more. How to solve the issue. Appreciate help.

Attached log files with appium v1.18.3 where the issue is seen.
appium-server-logs copy.txt

@mykola-mokhnach
Copy link
Collaborator

Duplicate of #13958

Unfortunately we are not under control of which elements to show in the page source. It is up to XCTest and the system accessibility framework. Consider also checking #6517

@mykola-mokhnach mykola-mokhnach added ThirdParty upstream problems XCUITest regarding xcuitest driver labels Oct 19, 2020
@kalyan7h
Copy link
Author

If it were an APPLE issue, then I should be seeing the same with appium version 1.15 too, but that is not the case.

@mykola-mokhnach
Copy link
Collaborator

There are too many changes between different iOS SDKs. also these are complete black boxes without a source code. This means it is nearly impossible to figure out what exactly was changed under the hood, where and why.

@kalyan7h
Copy link
Author

ok, how to handle it, do you have any workaround. One observation this mainly happens if the screen has many record rows(50+), if i limit my rows to some 15 to 20, mostly it works.

@mykola-mokhnach
Copy link
Collaborator

I'd try to play with the source command as described in #13595

@kalyan7h
Copy link
Author

One observation, Appium Version 1.15 works well on my IOS simulator version 13.3. But Appium Version 1.17 or 1.18 on IOS version 13.3 see the issue in fetching the elements into appium inspector.

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

2 participants