# Appium - To check the clicked video is playing or not

**URL:** <https://discuss.appium.io/t/appium-to-check-the-clicked-video-is-playing-or-not/5122>\
**Category:** Support\
**Created:** [July 9, 2015, 11:58am UTC](https://discuss.appium.io/t/appium-to-check-the-clicked-video-is-playing-or-not/5122 "2015-07-09T11:58:21Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Imthiyaz](https://discuss.appium.io/letter_avatar_proxy/v4/letter/i/f4b2a3/32.png) [@Imthiyaz](https://discuss.appium.io/u/Imthiyaz)\
**Post date:** [July 9, 2015, 11:58am UTC](https://discuss.appium.io/t/appium-to-check-the-clicked-video-is-playing-or-not/5122/1 "2015-07-09T11:58:21Z")

</div>

Hi Team,

I need help on testing the videos (playing or not) using Appium. i am not getting any clue in this anywhere, so please anyone help.

Example Application : [Youtube.com](http://Youtube.com)

once i clicked any video in Youtube, i need to check the clicked video is playing or not. So kindly help me is this possible in Appium or not … if not suggest me how to handle this…

Thanks  
imthi

---

<div class="post-metadata">

**Author:** ![Philippe\_Pageau](https://discuss.appium.io/letter_avatar_proxy/v4/letter/p/ac91a4/32.png) [@Philippe\_Pageau](https://discuss.appium.io/u/Philippe_Pageau)\
**Post date:** [July 9, 2015, 2:50pm UTC](https://discuss.appium.io/t/appium-to-check-the-clicked-video-is-playing-or-not/5122/2 "2015-07-09T14:50:24Z")

</div>

From what I know, Appium doesn’t record videos nor take images. I suggest using Applitools (supported by Appium) or just take screenshots of the youtube video and check them afterwards.

> **[Applitools Eyes](https://applitools.com/)**
>
> Automated visual application testing and monitoring

I’m new to this so please give me a feedback if you found it useful or you wish to have more information.

---

<div class="post-metadata">

**Author:** ![Christopher\_Graham](https://discuss.appium.io/user_avatar/discuss.appium.io/christopher_graham/32/440_2.png) [@Christopher\_Graham](https://discuss.appium.io/u/Christopher_Graham)\
**Post date:** [July 9, 2015, 3:31pm UTC](https://discuss.appium.io/t/appium-to-check-the-clicked-video-is-playing-or-not/5122/3 "2015-07-09T15:31:28Z")

</div>

Depending on if Appium can see the playback controls you can check for the presence of a Pause button instead of a Play button, and check that the playback time has increased after playback (0:00:00 at start, \> 0:00:00 after pressing Play).

Outputting screenshots to manually verify is a good suggestion, too. Sometimes that’s easier than spending hours trying to automate a solution.

---

<div class="post-metadata">

**Author:** ![Imthiyaz](https://discuss.appium.io/letter_avatar_proxy/v4/letter/i/f4b2a3/32.png) [@Imthiyaz](https://discuss.appium.io/u/Imthiyaz)\
**Post date:** [July 10, 2015, 9:06am UTC](https://discuss.appium.io/t/appium-to-check-the-clicked-video-is-playing-or-not/5122/4 "2015-07-10T09:06:16Z")

</div>

Thanks Philippe…i will try applitools as you suggested and get back to you

---

<div class="post-metadata">

**Author:** ![Imthiyaz](https://discuss.appium.io/letter_avatar_proxy/v4/letter/i/f4b2a3/32.png) [@Imthiyaz](https://discuss.appium.io/u/Imthiyaz)\
**Post date:** [July 10, 2015, 9:17am UTC](https://discuss.appium.io/t/appium-to-check-the-clicked-video-is-playing-or-not/5122/5 "2015-07-10T09:17:28Z")

</div>

Thanks Christopher…

---

<div class="post-metadata">

**Author:** ![patelvish0](https://discuss.appium.io/letter_avatar_proxy/v4/letter/p/58f4c7/32.png) [@patelvish0](https://discuss.appium.io/u/patelvish0)\
**Post date:** [June 22, 2016, 8:17pm UTC](https://discuss.appium.io/t/appium-to-check-the-clicked-video-is-playing-or-not/5122/6 "2016-06-22T20:17:36Z")

</div>

hello Imthiyaz,  
Did you get any solution?  
I am looking for same help …how can i get the status of player video is being played.  
Please help me if you have something…

Thank you .

---

<div class="post-metadata">

**Author:** ![videoTesting](https://discuss.appium.io/letter_avatar_proxy/v4/letter/v/65b543/32.png) [@videoTesting](https://discuss.appium.io/u/videoTesting)\
**Post date:** [July 27, 2016, 4:57pm UTC](https://discuss.appium.io/t/appium-to-check-the-clicked-video-is-playing-or-not/5122/7 "2016-07-27T16:57:32Z")

</div>

hello Imthiyaz,  
Could you please share your solution if you got one. I’m trying to accomplish the same or can you share how far you’ve gotten with which solution ?

Thank you .

---

<div class="post-metadata">

**Author:** ![Christopher\_Graham](https://discuss.appium.io/user_avatar/discuss.appium.io/christopher_graham/32/440_2.png) [@Christopher\_Graham](https://discuss.appium.io/u/Christopher_Graham)\
**Post date:** [July 27, 2016, 7:09pm UTC](https://discuss.appium.io/t/appium-to-check-the-clicked-video-is-playing-or-not/5122/8 "2016-07-27T19:09:48Z")

</div>

@videoTesting See my suggestions above.

> [@Appium - To check the clicked video is playing or not](https://discuss.appium.io/t/appium-to-check-the-clicked-video-is-playing-or-not/5122/3):
>
> Depending on if Appium can see the playback controls you can check for the presence of a Pause button instead of a Play button, and check that the playback time has increased after playback (0:00:00 at start, \> 0:00:00 after pressing Play). Outputting screenshots to manually verify is a good suggestion, too. Sometimes that’s easier than spending hours trying to automate a solution.

---

<div class="post-metadata">

**Author:** ![rohal](https://discuss.appium.io/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rohal](https://discuss.appium.io/u/rohal)\
**Post date:** [August 17, 2018, 7:42am UTC](https://discuss.appium.io/t/appium-to-check-the-clicked-video-is-playing-or-not/5122/9 "2018-08-17T07:42:06Z")

</div>

If video is getting played and i want to pause a video, then How to do? Because When i clicked on the video, pause button of a video comes for a 2-3 seconds and its disappears from the screen till that time i am not able to get the element id on the android devices.  
Can you suggest how to pause a video, if video is started.
