Selenium chrome headless bowser and playing html5 video

681 views
Skip to first unread message

JT

unread,
Jan 21, 2019, 3:08:42 PM1/21/19
to Selenium Users
I am trying to set up Selenium chrome headless browser to run my scripts on docker containers.  When I run without headless mode, The scripts run fine. When I try headless, any scripts that play videos are not working.  Is there an issue with playing videos in headless chrome? And are there workarounds? My selenium scripts are written in C#.

Jayam, Vishnudeep

unread,
Jan 22, 2019, 4:15:28 AM1/22/19
to seleniu...@googlegroups.com
Hey,

can you send me some screenshots of the errors that you get ?

I tried to set-up my BDD framework scripts run in headless jenkins server and was successful in doing that!

Send me the errors that you're getting so that i can help you! 

On Mon, Jan 21, 2019 at 9:08 PM 'JT' via Selenium Users <seleniu...@googlegroups.com> wrote:
I am trying to set up Selenium chrome headless browser to run my scripts on docker containers.  When I run without headless mode, The scripts run fine. When I try headless, any scripts that play videos are not working.  Is there an issue with playing videos in headless chrome? And are there workarounds? My selenium scripts are written in C#.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/6c8fdc1b-cad4-47f9-b184-cc9082f30cb9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Thanking you,

Best,

Vishnudeep Jayam
QA Engineer
_____________________________


Geschenkidee D&A GmbH / Regalos & Regali GmbH
Eberswalder Straße 6-9
10437 Berlin




Geschenkidee D&A GmbH
Zuständiges Gericht: Amtsgericht Berlin, HRB 139503B, EU VAT-ID: DE281888778

Regalos & Regali GmbH
Zuständiges Gericht: Amtsgericht Berlin, HRB 153466B, EU VAT-ID: DE292411380

JT

unread,
Jan 22, 2019, 8:26:48 AM1/22/19
to Selenium Users
Sorry, the screenshot doesn't help too much. The player window is supposed to close when video finishes playing however the video never plays so it fails when I look for the window disappearing.  

It seems to happen when I run chrome in headless mode without selenium too.

Do you have any tests that play html5 videos?
2019-01-20-1118-07.png

Jayam, Vishnudeep

unread,
Jan 22, 2019, 8:40:42 AM1/22/19
to seleniu...@googlegroups.com
No, i dont have any such tests playing  html5 videos! i will post the  screenshot of my base class! It might help u! 

2019-01-21 17_02_23-eclipse-workspace - com.gide.cucumber_src_test_java_userStepDefinations_BaseClas.png




For more options, visit https://groups.google.com/d/optout.

JT

unread,
Jan 22, 2019, 11:32:18 AM1/22/19
to Selenium Users
Thanks. I do not have any problem getting selenium chrome to run in headless mode. The problem is my tests cannot interact with playing a video.  The video wont play.  

David

unread,
Jan 22, 2019, 4:18:31 PM1/22/19
to Selenium Users
I'm assuming could be a visual/display problem in that embedded video playback/player plugin, etc. requires UI to properly function and headless mode puts it in a weird state. Video is different from static images and animated GIFs in the technology used to render the content.

Would be interesting to see if headless Firefox has the same issue or not. Alternatively, you could also try running the test in a headless setup that's not docker based. Could be docker related as well.

If you've narrowed it down to Chrome (docker or not), perhaps you could then bring this up with the Chrome/ChromeDriver team as it wouldn't be Selenium specific.
Reply all
Reply to author
Forward
0 new messages