Selenium docker-images (selenium/standalone-chrome, selenium/standalone-firefox, etc.)

185 views
Skip to first unread message

hartm...@gmail.com

unread,
Jan 24, 2018, 8:46:27 AM1/24/18
to Selenium Users
Can anyone explain briefly how these images are set up and how they work? 
Chrome and firefox and many other of the mentioned browsers are not headless so require a GUI, right? I suppose these containers do not have GUI's though. So there must be some kind of workaround. 

What I am getting at: Is testing the chrome-browser via these docker images exactly equivalent to testing it in a normal environment where the browser has it's normal GUI? Or is it emulated in some way? 

⇜Krishnan Mahadevan⇝

unread,
Jan 24, 2018, 8:58:47 AM1/24/18
to Selenium Users
What I am getting at: Is testing the chrome-browser via these docker images exactly equivalent to testing it in a normal environment where the browser has it's normal GUI? Or is it emulated in some way? 

​The docker images make use of xvfb to render the UI.

Both Firefox and Chrome images extend NodeBase which executes a shell script called entry_point.sh wherein the xvfb is setup and brought up so that the browsers may render the page on it.
 

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/6e86242f-323d-4077-8b2a-cc00dcd18cfc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

hartm...@gmail.com

unread,
Jan 24, 2018, 9:21:41 AM1/24/18
to Selenium Users
That's very interesting and cool to know, thanks a lot for your input, Krishnan!

So as far as I understood, using these docker-images I can already test Chrome and Firefox (and optionally phantomJS) perfectly fine in a headless environment (such as the Jenkins) - correct? Apart from some limiations (bugtracker suggests that some video playback might not work, etc.) everything else should work just as if the server was running on an actual server with UI? 
Now, what about the Internet Explorer? As far as I can see there is no image for the IE - I assume that is because of limiations that the browser itself forces onto the underlying driver. Most likely some amount of issues regarding the usage of xvfb, I assume? 
I suppose that to test the IE I will need a dedicated server with UI. I guess it should be possible to add such node to the dockerized hub (which would already have the chrome-node container and the firefox-node container registered)? 

Krishnan Mahadevan

unread,
Jan 24, 2018, 10:36:21 PM1/24/18
to seleniu...@googlegroups.com

>>>>>> So as far as I understood, using these docker-images I can already test Chrome and Firefox (and optionally phantomJS) perfectly fine in a headless environment (such as the Jenkins) - correct? Apart from some limiations (bugtracker suggests that some video playback might not work, etc.) everything else should work just as if the server was running on an actual server with UI? 

Yes, that is correct. Although I don’t know about the validity of the bug that you talk about, mainly because I haven’t dirtied my hands yet in this arena

 

>>>>>> Now, what about the Internet Explorer? As far as I can see there is no image for the IE - I assume that is because of limiations that the browser itself forces onto the underlying driver. Most likely some amount of issues regarding the usage of xvfb, I assume? 

 

IE doesn’t have a docker image because all docker images are LINUX based and there’s no way of running a windows based IE browser on LINUX. I have heard that Microsoft is also going to be coming out with windows docker images (on top of their windows server OS), but until that happens, you are stuck with using a physical/VM to run your IE based tests. It has got nothing to do with xvfb

 

>>>>>> I suppose that to test the IE I will need a dedicated server with UI. I guess it should be possible to add such node to the dockerized hub (which would already have the chrome-node container and the firefox-node container registered)? 

The docker hub is just like running a hub on a physical/VM. So yes, I think you should be able to wire in a node that is running on a windows machine, to the hub that is running within a docker container. You may have to take care of resolving the network nuances though (if they occur). What would those nuances be, well, I don’t know. My networking skills aren’t that strong But feel free to post back on this forum and someone am sure will help you out with your query.

 

 

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

 

--

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/fbb61547-baec-42cc-bbf5-231d9080df9c%40googlegroups.com.

Shawn McCarthy

unread,
Jan 25, 2018, 9:30:10 AM1/25/18
to Selenium Users
Krishnan, there are windows containers for awhile now. However, you still can't run GUI applications in them. https://store.docker.com/publishers/microsoft for example.

⇜Krishnan Mahadevan⇝

unread,
Jan 25, 2018, 10:01:13 AM1/25/18
to Selenium Users
Shawn,

That link lists only MSSQL Server for Linux published by Microsoft. See here for the relevant docker file.
Is there anything that I am missing ?


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/81eef799-69eb-458b-8f83-e3f3205ca537%40googlegroups.com.

Shawn McCarthy

unread,
Jan 25, 2018, 12:06:52 PM1/25/18
to Selenium Users

⇜Krishnan Mahadevan⇝

unread,
Jan 25, 2018, 12:14:41 PM1/25/18
to Selenium Users
Yep. That definitely lists a lot of windows based images from Microsoft.
Would you know how I can look at their DockerFile ( i wonder if they have one, or if the windows world basically works in a different way).

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/aa6970cf-c7bf-4e0c-b09a-40dd2a5fc405%40googlegroups.com.

Shawn McCarthy

unread,
Jan 25, 2018, 12:27:59 PM1/25/18
to Selenium Users
No, I don't know where they are hosted (their Dockerfiles).
Reply all
Reply to author
Forward
0 new messages