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
[BUG] Failed to create snapshot when rendered HTML have pseudo elements in XCode 11. #14194
Comments
Unfortunately the snapshotting error itself is thrown by xctest. We cannot do nothing about it. However, it is possible to tune some snapshotting parameters (like
Also, please try it with appium@beta, so we know the most recent fixes are included |
@kimjg Please share which solution helped in your case, so other people would know what to do |
@mykola-mokhnach Should I close this issue after it is resolved? If so, close it later when I find out how to fix this issue, or when the modified version is applied to appium@beta you mentioned. :) |
You would probably have to wait forever :( Try the apply the workarounds above and let us know if it worked. Also, investigate the resulting device logs. Usually XCTest writes a lot of useful debug info there. |
@mykola-mokhnach However, it is not a snapshotTimeout problem, but a parsing error. And appium@beta has already tried, but it same too. Thanks for the quick answer, and finally I'll do what you suggested.
But.... I am already figuring out the cause of this issue (it's caused by pseudo elements parsing error). After all, I think it's a problem Apple needs to fix, and I want to send an email to Apple. What do you think? I am sorry to close the issue without posting it as a result of your suggestion. It was my first time creating an issue, so I didn't know well. Thank you. |
Have you tried to exclude the visibility attribute from the snapshot like it is stated in one of the linked issues? |
Closed because of no response |
The problem
Hi.
We are doing an integrated test of the mobile device well using the features you provided. First of all, thank you for this.
We found an issue with Xcode 11.
The problem is below.
Due to some pseudo elements rendered in the WKWebView on iOS built in Xcode 11, it seems that there is an error creating a snapshot.
(rf: pseudo elements: https://www.w3schools.com/css/css_pseudo_elements.asp)
The pseudo elements identified as having problems are :: after, :: before.
If the elements are included in the rendered html, snapshot creation fails.
We are temporarily building via Xcode 10, but we hope to fix the problem as soon as possible. Thank you.
Environment
Link to Appium logs
Cannot take the snapshot of Window after 15 seconds
2020-04-17 14:01:43.511077+0900 WebDriverAgentRunner-Runner[5069:1155365] Internal error: Error Domain=com.apple.dt.xctest.automation-support.error Code=5 "Error kAXErrorIPCTimeout getting snapshot for element <AXUIElementRef 0x100d5ac40> {pid=5028} {uid=[ID:9999 hash:0x6de2ed5000000000]}" UserInfo={NSLocalizedDescription=Error kAXErrorIPCTimeout getting snapshot for element <AXUIElementRef 0x100d5ac40> {pid=5028} {uid=[ID:9999 hash:0x6de2ed5000000000]}}
Code To Reproduce Issue [ Good To Have ]
It is returned as an error in the reply block of the code.
https://github.com/appium/WebDriverAgent/blob/master/WebDriverAgentLib/Categories/XCUIElement%2BFBUtilities.m#L123
The text was updated successfully, but these errors were encountered: