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,090 points
1,767 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,710 points
Do you have more example in same thread like how to design simple code for same ?

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 27, 2018 in Selenium by nsv999
• 5,500 points
8,060 views
0 votes
1 answer
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, 2019 in Selenium by Anvi
• 14,150 points
4,258 views
0 votes
2 answers

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,500 points
13,673 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,142 views
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,910 points
7,221 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
7,874 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,710 points
10,814 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,710 points
783 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP