First time here? Check out the FAQ!
x

Getting an error when I start Chrome using VBA.

0 votes
asked by about SeleniumWrapper
edited by

I have installed latest version SeleniumWrapperSetup-1.0.23.0.exe and when I try to open Google.co.in in Chrome, I got an error message as Disable Developer Mode Extension and Not Secure data is mentioned on
top of the page. Please help

I have tried both ways below.

  • 1

Dim driver As SeleniumWrapper.WebDriver
Set driver = New SeleniumWrapper.WebDriver
driver.Start "Chrome", "http://www.google.co.in"

  • 2

Dim bot As New WebDriver
bot.Start "chrome", "https://www.google.co.in"
bot.Open "https://www.google.co.in"

Thanks,
Gayathri.

1 Answer

0 votes
answered by (329k points)

When you create the drivers for Chrome, use the following code as you see here:

ChromeOptions options = new ChromeOptions();
options.addArguments("chrome.switches","--disable-extensions");
System.setProperty("webdriver.chrome.driver",(System.getProperty("user.dir") + "//src//test//resources//chromedriver_new.exe"));
driver = new ChromeDriver(options);

This needs to be added to the conf.js file so that SeleniumWrapper will work properly.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register
...