When executing my Jenkins tests with Selenium WebDriver, I do not see a GUI.

0 votes
My code is a Selenium code and I have TestNG dependencies in it. This code and dependencies are built with maven's pom.xml file (mvn test).

Now when I schedule these tests with Jenkins on my windows machine, I only see the Console Output. The tests happen though. But the GUI does not come up. As in, my browser instance does not popup and I cannot actually see the test happen infront of me. Can I even see it?
May 2, 2018 in Selenium by eLiJha
• 700 points
533 views

2 answers to this question.

0 votes

Jenkins is a web server which is majorly used in production server...and in prod servers, most of the times, there are no GUIs.
But if you want to enable the GUI coming up in your lcoal machine, then it is still possible. 2 steps:

1. Open Windows services (or run: services.msc)
image
2. Double click on Jenkins service
3. In Logon tab, check this box: "Allow service to interact with Desktop"
image

Now it should work fine for you. ATB

answered May 2, 2018 by sniffy_god
• 760 points
This is not working for Win10. what would be the solution for same issue in Win-10
+1 vote

Hi eLiJha,

I also faced the same issue earlier in my local machine.
My test was running perfectly from the eclipse but when I moved to Jenkins it was only running in console mode. I was unable to view the UI.

So for that, you just need to make your local machine as a Jenkins slave by creating a new slave node in your Jenkins and select that node to execute the Jenkins job.

@sniffy_god , Your procedure is correct , but by using this you might get a permission problem .

Hope this will help. 

answered 1 day ago by nayan
• 160 points
Hi Nayan, thanks for sharing your answer.

Related Questions In Selenium

0 votes
2 answers
0 votes
1 answer

Can we run selenium tests (Firefox) on WebDriver without a GUI?

You can explore options like HTMLUnit Driver ...READ MORE

answered Mar 23, 2018 in Selenium by nsv999
• 5,050 points
175 views
0 votes
1 answer

I tried to open a new website when a new tab is opened using Selenium Webdriver

Try this code: ArrayList<String> tabs = new ...READ MORE

answered Mar 27, 2018 in Selenium by nsv999
• 5,050 points
682 views
0 votes
1 answer

How do i change the location where my file gets downloaded in Selenium Webdriver and firefox driver?

There are a couple of errors there. ...READ MORE

answered Apr 12, 2018 in Selenium by nsv999
• 5,050 points
1,199 views
0 votes
1 answer

How do i click on <input type=file> on any browser if i'm testing with Selenium Webdriver?

Does not matter which OS or which ...READ MORE

answered Apr 29, 2018 in Selenium by king_kenny
• 3,590 points
2,503 views
0 votes
1 answer
+13 votes
2 answers
0 votes
1 answer