Can Selenium testing be done on gui less server? I heard of something called headless browser testing, but not sure.

0 votes
Right now I'm working with Selenium on a Server and I don't think any of the common browser drivers support headless browser testing.
If i'm not wrong, you can create a virtual framebuffer to hide the browser window, but then that in truth is not a headless browser. Can anyone clarify this out for me?
Apr 13, 2018 in Selenium by kappa3010
• 2,020 points
179 views

1 answer to this question.

0 votes

Yes, you are indeed rigth. For Selenium WebDriver testing on servers or on machines where you do not have a GUI, use either HTMLUnit Driver or PhanthomJS driver. So you will have to similarly download the driver.exe from SeleniumHQ's website, provide the path in your code and most importantly import the required packages in your code. For python, you will do it something like this:

from selenium import webdriver
dr = webdriver.PhantomJS() 
answered Apr 13, 2018 by king_kenny
• 3,650 points

Related Questions In Selenium

0 votes
1 answer

Selenium ChromeDriver issue - Want to run it in background, but not as headless browser

This is a flaw with ChromeDriver. Tried ...READ MORE

answered Mar 26, 2018 in Selenium by nsv999
• 5,090 points
1,098 views
0 votes
1 answer

How can I use HTML Unit Driver as a headless browser with Selenium?

Hello @Nishant, follow these steps to use ...READ MORE

answered May 17 in Selenium by Anvi
• 13,400 points
178 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,090 points
775 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
1,018 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
722 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,650 points
3,345 views
0 votes
1 answer

Selenium Alternatives: Is there a tool like Selenium for testing web pages but which does not involve coding.

I'm guessing you've tried Selenium IDE already. ...READ MORE

answered Apr 13, 2018 in Selenium by king_kenny
• 3,650 points
72 views