Firefox 44.0.1运行selenium webdriver代码时打开两个选项卡
我的Firefox最近更新了。我的firefox版本是44.0.1。当我在SeleniumWebDriver中运行下面的简单代码时,firefox中会打开两个选项卡。我怎样才能摆脱不需要的账单呢。我更改了Firefox设置,但仍有两个选项卡打开。一个选项卡是普通选项卡,第二个选项卡是。如何在一个firefox窗口中加载我想要自动运行的URL。我是否需要更改任何firefox设置Firefox 44.0.1运行selenium webdriver代码时打开两个选项卡,firefox,selenium-webdriver,Firefox,Selenium Webdriver,我的Firefox最近更新了。我的firefox版本是44.0.1。当我在SeleniumWebDriver中运行下面的简单代码时,firefox中会打开两个选项卡。我怎样才能摆脱不需要的账单呢。我更改了Firefox设置,但仍有两个选项卡打开。一个选项卡是普通选项卡,第二个选项卡是。如何在一个firefox窗口中加载我想要自动运行的URL。我是否需要更改任何firefox设置 import org.openqa.selenium.WebDriver; import org.openqa.sel
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.Test;
public class Another {
@Test
public void tester(){
WebDriver driver = new FirefoxDriver();
driver.manage().window().maximize();
driver.get("http://jqueryui.com/datepicker/");
}
}
创建一个Firefox配置文件,并在根据需要进行设置后使用名称保存它。请在脚本中调用此配置文件 是创建firefox配置文件的步骤 下面是脚本示例
ProfilesIni profile = new ProfilesIni();
FirefoxProfile myprofile = profile.getProfile("CreatedProfile");
WebDriver driver = new FirefoxDriver(myprofile);
谢谢,,
Murali这是firefox新版本的问题吗?