How to run selenium tests in headless mode on Mac using Webdriver with firefox 17.0.1
Asked Answered
C

2

11

How to run Automated selenium tests in Mac OS 10.8 with firefox 17.0.1 using Xvfb(X-virtual frame buffer) Anyone help me regarding this configuration.

Convulsion answered 28/3, 2014 at 12:4 Comment(2)
check this linkClydeclydebank
This question is extremely broad - can you update the question with details about what you have tried, and what part is not working?Consolute
T
1

I don't think such old Firefox version is still relevant. But for those who still want to use old Firefox versions - take a look at Selenoid project. This is a lightweight Selenium-compatible server coming with a set of prebuilt Docker images for all Firefox versions starting with 3.6. All images include Xvfb inside, so this solution is completely headless.

Twyla answered 22/6, 2017 at 8:40 Comment(0)
Z
0

Will you try adding this option to your binary of Firefox if you are using binary of Firefox.

binary.addArguments("-headless");

If you are not using binary and using driver as new Firefox driver then

 FirefoxOptions fireFoxOptions = new FirefoxOptions();
 fireFoxOptions.addArguments("-headless");
 DesiredCapabilities firefoxcapabilities = DesiredCapabilities.firefox();  
 capabilities.setCapability(ChromeOptions.CAPABILITY,fireFoxOptions);
 WebDriver firefoxdriver = new FirefoxDriver(firefoxcapabilities);

Also, this is a very old version of Firefox I will prefer upgrading the version if you don't have any restrictions upgrading it.

Zirconium answered 3/10, 2017 at 1:49 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.