How to click video play button in Chrome
Posted: Wed Jan 02, 2019 7:37 pm
We have a video element that I need to click the play arrow button to start the video play back. Previously, the play button was the center of the video and I could just to a click on the video element. Now, not sure if the browser or our product has changed, the center play button is not active only the lower left-hand side button.
All of my tests are written in C#, how can I initiate the playback reliably?
Firefox still shows the center play button, but I am testing with Chrome.
One approach would be to search the video element for the playback arrow. So far I have not been successful with that approach. I have found a need for additional tools to work with image. I tried the recorder and when I played the recording back, the element could not be found.
The approach I am taking now is to click at a specific offset from the bottom and left edge of the video element rectangle. This is not a good approach for a reliable test.
Other suggestions??
All of my tests are written in C#, how can I initiate the playback reliably?
Firefox still shows the center play button, but I am testing with Chrome.
One approach would be to search the video element for the playback arrow. So far I have not been successful with that approach. I have found a need for additional tools to work with image. I tried the recorder and when I played the recording back, the element could not be found.
The approach I am taking now is to click at a specific offset from the bottom and left edge of the video element rectangle. This is not a good approach for a reliable test.
Other suggestions??