Hi,
I need to launch chrome with "Offer to save passwords I enter on the web" option unchecked. I have already unchecked this manually many times. But when I try to launch chrome with webdriver, it becomes checked again.
The problem I am facing with this is that, if the option is checked, it always asks me "Do you want Google Chrome to save your password?"
I need to perform mouseover action on Go to Link of this page. The code is running fine if this option doesn't come or I click in cross manually. But if stays there, code is unable to perform mouseover action on Go to.
I am using below code :
for launching chrome :
System.setProperty("webdriver.chrome.driver","\\chromedriver_win_23.0.1240.0\\chromedriver.exe");
DesiredCapabilities capability = DesiredCapabilities.chrome();
capability.setCapability("chrome.switches", Arrays.asList("--disable-extensions"));
capability.setCapability("chrome.binary", "C:/Documents and Settings/<userfolder>/Local Settings/Application Data/Google/Chrome/Application/chrome.exe");
ChromeOptions options = new ChromeOptions();
options.addArguments("user-data-dir=C:/Documents and Settings/<userfolder>/Local Settings/Application Data/Google/Chrome/User Data/Default");
capability.setCapability(ChromeOptions.CAPABILITY, options);
WebDriver driver= new ChromeDriver(capability);
for performing mouseover :
WebElement we = driver.findElement(By.linkText("Go to"));
Actions builder = new Actions(driver);
builder.moveToElement(we).click(we);
builder.perform();
The mouseover code is running fine for chrome/firefox unless that option is coming.
Thanks & Regards,
Avikash Gorka
Sr Test Engineer