What you’re looking for is a headless-browser.
Yes, it’s possible to run Selenium on Firefox headlessly. Here is a post you can follow.
Here is the summary steps to set up Xvfb
#install Xvfb
sudo apt-get install xvfb
#set display number to :99
Xvfb :99 -ac &
export DISPLAY=:99
#you are now having an X display by Xvfb
More Related Contents:
- What is the difference between cssSelector & Xpath and which is better with respect to performance for cross browser testing?
- Get HTML source of WebElement in Selenium WebDriver using Python
- Execute JavaScript using Selenium WebDriver in C#
- Open web in new tab Selenium + Python
- How to run Selenium WebDriver test cases in Chrome
- webdriver.FirefoxProfile(): Is it possible to use a profile without making a copy of it?
- Server terminated early with status 1 error with Selenium for ChromeDriver and Chrome Browser and the log message “Only local connections are allowed”
- Reached error page: about:neterror when trying to navigate to other tabs if there is a form submit under that tab
- unknown error: call function result missing ‘value’ for Selenium Send Keys even after chromedriver upgrade
- nginx – nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
- Selenium stops when browser is manually interrupted
- Removing all installed OpenCV libs
- org.openqa.selenium.ElementNotInteractableException: Element could not be scrolled into view when trying to click a button
- How to start nginx via different port(other than 80)
- java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;I)V with IE and Selenium through Java
- How can I get Selenium Web Driver to wait for an element to be accessible, not just present?
- how to disable cookies using webdriver for Chrome and FireFox JAVA
- How do you click on a checkbox from a list of checkboxes via Selenium/Webdriver in Java?
- org.openqa.selenium.InvalidCookieDomainException: Document is cookie-averse using Selenium and WebDriver
- Finding elements by class name with Selenium in Python
- AttributeError: ‘list’ object has no attribute ‘click’ – Selenium Webdriver
- How to ignore ssl_client_socket_impl.cc(1061)] handshake failed in selenium c# ChromeDriver
- How to execute tests with selenium webdriver while browser is minimized
- Which is the best and fastest way to find the element using webdriver? By.XPath or By.ID or anything else? And why? [closed]
- Selenium how to manage wait for page load?
- How To Set Up GUI On Amazon EC2 Ubuntu server
- selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 80
- gpg: no valid OpenPGP data found
- Unknown encoder ‘libfaac’
- Selenium WebDriver and browsers select file dialog