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

The previously found element \"Application 'XXX'\" is not present in the current view anymore. #19297

Closed
Xuuxxxx opened this issue Oct 14, 2023 · 5 comments
Labels
Needs Info typically non-actionable; needs author to respond ThirdParty upstream problems XCUITest regarding xcuitest driver

Comments

@Xuuxxxx
Copy link

Xuuxxxx commented Oct 14, 2023

Env:
Appium 2, latest Appium Inspector from https://github.com/appium/appium-inspector
capability:
image

Situation:
Ps: My app is not a native ios app, it is done by react-native.
I am doing UI testing, before I login my app I can see the page in Appium Inspector. Every page before I log in, I can click refresh button to load. But after I have logged in, when I click refresh button of the Appium inspector, the page will not refreshed.
image
Appium log:
image
image
image

@KazuCocoa
Copy link
Member

Could you attache the full appium log as GIST as well?

@KazuCocoa KazuCocoa added the Needs Info typically non-actionable; needs author to respond label Oct 14, 2023
@mykola-mokhnach
Copy link
Collaborator

I was observing similar errors when the app under test had too large page source. In such case XCTest simply fails to serialise it within sane time interval.
You could probably reduce the value of snapshotMaxDepth as a possible workaround. See #14825 for more details.

@mykola-mokhnach mykola-mokhnach added ThirdParty upstream problems XCUITest regarding xcuitest driver labels Oct 14, 2023
@Xuuxxxx
Copy link
Author

Xuuxxxx commented Oct 14, 2023

@KazuCocoa Sorry for my late. This is the first time I asked issue, I will attach the full log as GIST in the future.

@mykola-mokhnach I have refer to your linked issue. I tried to reduce the snapshotMaxDepth to 62, and it works now, I can load the page now. But since the max depth is 62, my element depth >62, so I can not select the specific element in the page.
But when I set the snapshotMaxDepth to 63, I can not load the page.
Can any capability help to solve this issue?

@mykola-mokhnach
Copy link
Collaborator

Probably nothing except of the stuff described in the above ticket. Only Apple itself could fix that.

@Xuuxxxx
Copy link
Author

Xuuxxxx commented Oct 16, 2023

Understood, thanks for your reply. And I am looking forward to others' further resolving.

@Xuuxxxx Xuuxxxx closed this as completed Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Info typically non-actionable; needs author to respond ThirdParty upstream problems XCUITest regarding xcuitest driver
Projects
None yet
Development

No branches or pull requests

3 participants