Selenium grid docker run test in headless mode by default?

107 views
Skip to first unread message

Quyên Nguyễn

unread,
Jan 22, 2019, 10:59:32 PM1/22/19
to Selenium Users

Hi,

I'm using the selenium grid docker compose version 2 to run my test: https://github.com/SeleniumHQ/docker-selenium#version-2.
When the test run, it runs in headless mode by default(the test shows steps in jenkins console but I don't see any browser is opened).
So my question is:

  • Is the headless mode is the default mode?
  • If I don't want to run in headless mode, what should I do then?
Thanks in advance!

Jayam, Vishnudeep

unread,
Jan 23, 2019, 4:08:35 AM1/23/19
to seleniu...@googlegroups.com
if you want to see browser is opened then u need to do some changes in your system! check this link https://stackoverflow.com/questions/9618774/jenkins-selenium-gui-tests-are-not-visible-on-windows (helps if your system is windows)

--
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/4a06a3c7-c350-4de2-ac1e-86779dd1cdf0%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

Anand Somani

unread,
Jan 23, 2019, 5:35:21 PM1/23/19
to seleniu...@googlegroups.com
Hey Quyên Nguyễn

Are you running your tests on docker container using Jenkins? If yes, Could you please make a sample code base and share it with me? I want to do it.
Really appreciated. If you upload in github then also fine.


Thanks & Regards,
Anand Somani | Skype ID: anand.somani | somani...@gmail.com 
LinkedIn Profile : https://www.linkedin.com/in/somanianands
Visit Blogs: http://seleniumtestingguide.blogspot.in/



Quyen Nguyen

unread,
Jan 23, 2019, 11:14:21 PM1/23/19
to Selenium Users
Hi,
No, I use a separated docker, not a docker on jenkins.
You can check my project, there is a docker-compose file there: https://github.com/quyennt44/serenityDemo 

Quyen Nguyen

unread,
Jan 23, 2019, 11:14:31 PM1/23/19
to Selenium Users
Thanks @Vishnudeep Jayam 
I don't think that is the problem. 

If I configure selenium grid manual like the following(not using selenium grid docker), I can see the browser opened.

java -jar selenium-server-standalone-3.4.0.jar -role hub
java -Dwebdriver.chrome.driver="/home/chromedriver_linux64/chromedriver" -jar selenium-server-standalone-3.4.0.jar -role webdriver -hub http://localhost:4444/grid/register -port 5567
java -Dwebdriver.gecko.driver="/home/geckodriver-v0.23.0-linux64/geckodriver" -jar selenium-server-standalone-3.4.0.jar -role webdriver -hub http://localhost:4444/grid/register -port 5566


Reply all
Reply to author
Forward
0 new messages