-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Missing target for given targetId - silent error causes high rate of failures on Appium 1.17.x through 1.18.3 #14867
Comments
It seems Web inspector (Safari) returns the message. https://github.com/WebKit/webkit/search?q=Missing+target+for+given+targetId
You probably only can do tweaking the find_element rule. |
Dug a bit further. Web Inspector said the target id was changed, so Appium also changed the target. But could this be not true? Then, the updated id by Web Inspector was wrong. Do you have a chance to share the log with |
@KazuCocoa Working on it. I'll attach that here shortly. |
@KazuCocoa Here are a few logs with SafariLogAllCommunication flag set |
Definitely looks like a race condition (what @KazuCocoa is saying). It's sending the command to act on target 50; the target is changing from 50 to 54; the command operates on target 50 (which is stale) |
I put in a pull request to fix this. I'm confident that it will work but I haven't been able to reproduce this issue (therefore can't properly test it). I'm going to see about reproducing. |
Oh, thanks! > PR |
Closes once -> https://github.com/appium/appium/releases/tag/v1.19.1 |
The problem
We have been lately seeing high rate of failures (18%) on iOS 13 using Appium 1.17.1 and iOS 14 using Appium 1.18.3
The test suites have a 100% success on iOS 12.x running against Appium 1.9.1.
This is particularly difficult as it results in a falsely reported passing test when this am internal failure occurs.
On all of the failed tests, Appium logs report:
Encountered internal error running command: Missing target for given targetId
Environment
Details
We have a customer who runs significantly high volume (close to 1 million) of tests and reporting this.
This is preventing them from moving to iOS 13 or 14 as the issue exists on all appium versions 1.17.1 through 1.18.3
Link to Appium logs
https://gist.github.com/raolaks/e2197c91e4e453f357fdaf87ce3a543b
(Contains 1.9.1/ 1.17.1/ 1.18.3 failures)
The text was updated successfully, but these errors were encountered: