Selenium 2.53 and Firefox 47 Compatibility Issues
Selenium WebDriver 2.53 is not compatible with Firefox 47. This is because the FirefoxDriver component for handling Firefox browsers is being phased out. In fact, Selenium WebDriver 3.0 requires the geckodriver binary to manage Firefox browsers.
Solution:
To use Firefox 47 with Selenium WebDriver 2.53:
Include the WebDriverManager library in your project, execute:
WebDriverManager.firefoxdriver().setup();
Define the absolute path to the geckodriver binary:
System.setProperty("webdriver.gecko.driver", "/path/to/geckodriver");
Note:
The above is the detailed content of How to Use Selenium 2.53 with Firefox 47?. For more information, please follow other related articles on the PHP Chinese website!