Selenium webdriver 在不使用gecodriver的情况下,哪个版本的firefox与Selenium 3.3.1兼容

Selenium webdriver 在不使用gecodriver的情况下,哪个版本的firefox与Selenium 3.3.1兼容,selenium-webdriver,Selenium Webdriver,我想在Firefox上运行脚本,将selenium webdriver版本安装为3.3.1,但不使用geco驱动程序。 请帮助我,因为我正在客户端机器上工作不,如果不使用geckodriver,您无法使用Selenium 3.3.1 Selenium 2.53是最后一个在Mozila Firefox上没有gecko驱动程序的版本(直到47.x版) 要使用Selenium 3.3.1,您需要强制从下载gecko驱动程序v0.15.0并保存它。将Mozila Firefox升级到53.x 注意:对于

我想在Firefox上运行脚本,将selenium webdriver版本安装为3.3.1,但不使用geco驱动程序。
请帮助我,因为我正在客户端机器上工作

不,如果不使用geckodriver,您无法使用Selenium 3.3.1

Selenium 2.53是最后一个在Mozila Firefox上没有gecko驱动程序的版本(直到47.x版)

要使用Selenium 3.3.1,您需要强制从下载gecko驱动程序v0.15.0并保存它。将Mozila Firefox升级到53.x

注意:对于gecko驱动程序v0.15.0,您必须升级到Selenium 3.3,因为此版本将HTTP响应与WebDriver标准保持一致

接下来,您需要在代码中提供gecko驱动程序的绝对路径。您的代码如下所示:

System.setProperty("webdriver.gecko.driver",  "C:\\Utility\\BrowserDrivers\\geckodriver.exe");
FirefoxDriver driver =  new FirefoxDriver();
driver.manage().window().maximize();
driver.get("https://www.facebook.com/");
driver.findElement(By.name("email")).sendKeys("your_username");

如果这能回答您的问题,请告诉我。

@AshishJain您是否尝试过使用最新的项目资源来满足您的需求?您可能需要根据需要保留Firefox驱动程序的实现。就使用释放罐而言,不可能使用含gecko的Selenium 3。