我试图在www.naukri.com中处理多个弹出窗口阻止程序;为此,我在firefox中创建了一个名为“AutoProfile”的自定义配置文件。但我在加载这个自定义配置文件在Firefox的驱动程序有问题;无法在FirefoxDriver中加载自定义配置文件:构造函数FirefoxDriver(Firefox配置文件)未定义
System.setProperty("webdriver.gecko.driver", "F:\\abc\\geckodriver-v0.18.0-win64\\geckodriver.exe");
ProfilesIni profile2=new ProfilesIni();
FirefoxProfile profile3=profile2.getProfile("AutoProfile");
profile3.setPreference("browser.popups.showPopupBlocker", false);
driver =new FirefoxDriver(profile3);
driver.get("www.naukri.com");
但我得到一个错误在driver=new FirefoxDriver(profile3);
它说:
The constructor FirefoxDriver(FirefoxProfile) is undefined.
有些时候,我得到一个消息作为构造已被弃用。
感谢您的回复,我没有下载最新的磁带库和驱动器壁虎。但问题仍然存在.. –