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.

Samuel Liew
  • 76,741
  • 107
  • 159
  • 260
user3469434
  • 129
  • 1
  • 4

2 Answers2

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.

vania-pooh
  • 2,933
  • 4
  • 24
  • 42
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.

madhuri
  • 11
  • 1