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
Appium fails to find element from video player while content is playing. #8525
Comments
This is XCTest issue and Appium cannot do anything about it. To workaround the problem you might try to pause the playback, cache control coordinates and then click by coordinates while video playback is active instead of trying to locate the element. You can either use TouchActions or mobile: interface to perform click by absolute coordinates. |
@mykola-mokhnach I'm facing this issue on android though. As a work around, I pause the video and try to find elements. I also tried automation-name as uiautomator2, still above problem exists. |
As far I know Android waits until the app under test is idle before to execute element location, so this suggestion will be true for Android as well except of mobile: interface. |
Thanks @mykola-mokhnach for the suggestion. I've added the following helper methods and did the trick.
But we can find video player control elements only before the video started playing. If it once started playing or then paused case as well once started, the screen will not be idle (it will continuously triggered events). But in my case I've an option to pause the video at the beginning (say autoplay disable option). So I've done the following steps. (In my case I need to click on the mute button once started playing)
NOTE: |
And one more thing is most of we peoples would faced the same issue with android uiautomator viewer when trying see the elements for adding page object. Error:
I just did the workaround for viewing the elements when screen is not idle. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The problem
I'm trying to to automate play back controls in a video player. When appium tries to find element during playback, it hangs and throw No Such Element Exception. Same works, when the content playback is paused.
Environment
Details
I tried xpath to find element, still did not work. Also changes automation-name as uiautomator2. Nothing worked
**Error Message :**Selenium::WebDriver::Error::NoSuchElementError: An element could not be located on the page using the given search parameters.
Link to Appium logs
https://gist.github.com/ajeeshvl/aebd97d5aa9e8da66b5861b0233e53d5
The text was updated successfully, but these errors were encountered: