i have many profiles in Firefox to open in selenium, now i want to open a Firefox profile in Private Browsing Mode. How to Open Firefox Profile with privatebrowsing in Selenium? here is my code
ProfilesIni profile = new ProfilesIni();
FirefoxProfile ffprofile = profile.getProfile("1");
ffprofile.set_preference("browser.privatebrowsing.autostart", True);
WebDriver driver = new FirefoxDriver(ffprofile);
driver.get("http://proxy.cm/");
try {Thread.sleep(13000);} catch (InterruptedException e) {e.printStackTrace();}
this line shows error
ffprofile.set_preference("browser.privatebrowsing.autostart", True);
above line show error "True cannot be resolved to a variable".
One more problem i am facing that Selenium is not updating Firefox profiles, i mean i installed some new extention, i also changed some setting in firefox profile but Selenium always open Firefox with old settings, extensions. how can i force Selenium to open firefox profile with updated new settings and extentions?