Chrome 58, Chromedriver 2.29, selenium 3.4.0 and error

792 views
Skip to first unread message

Greg Martz

unread,
May 23, 2017, 6:33:10 PM5/23/17
to seleniu...@googlegroups.com
Anyone have a work-around to the popup when launching the Chrome browser in Selenium inside an enterprise that does not allow unpacked extensions to be loaded?  

The error is:
Failed to load extension from:C:\Users\testuser\AppData\Local\Temp\scoped_dir6712_14913\internal.
Loading of unpacked extensions is disabled by the administrator.

Can't click the OK button since it hasn't returned the WebDriver yet.  This is preventing any Chrome testing.

String sChromeDriverLocation = "drivers\\chromedriver_2.29.exe";

case "CHROME":
capabilities = DesiredCapabilities.chrome();
ChromeOptions options = new ChromeOptions();
options.addArguments("--disable-infobars");
options.addArguments("start-maximized");
capabilities.setCapability(ChromeOptions.CAPABILITY, options);
System.setProperty("webdriver.chrome.driver", sChromeDriverLocation);
wdDriver = new ChromeDriver(capabilities);
Log.Info("Driver initialized for chrome with capabilities");



Thanks!
Greg

Greg Martz
Test Analyst III - Sr. Software Automation Analyst  |  (425)416-5039  |  gma...@Costco.com 

"Confidentiality Notice:  This e-mail message, including any attachments, is for the sole use to the intended recipient(s) and may contain confidential and privileged information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message."

Nick Boyle

unread,
May 23, 2017, 6:38:19 PM5/23/17
to seleniu...@googlegroups.com
This works fine on Chrome 58, chromedriver 2.29 and selenium 3.4 

DesiredCapabilities cap = DesiredCapabilities.chrome();
ChromeOptions options = new ChromeOptions();
options.addArguments("test-type");
options.addArguments("disable-extensions");
options.addArguments("disable-infobars");
options.addArguments("start-maximized");

cap.setCapability(ChromeOptions.CAPABILITY, options);
this.driver = new ChromeDriver(cap);

Unless you really need that plugin?

NDB

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAJ5e%3DehREQQRTNgWx91mxiyJwWQE5Kc%3DnZh4gw%3DXZ5oSsY_Vcw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Greg Martz

unread,
May 24, 2017, 10:11:54 AM5/24/17
to seleniu...@googlegroups.com
I am not the one adding that plugin.  It's being created by either the chromedriver or selenium.  I'll try adding those two and see if it fixes it.  To be sure, if you remove those two ChromeOptions, you get the same error?


Thanks!
Greg

Greg Martz
Test Analyst III - Sr. Software Automation Analyst  |  (425)416-5039  |  gma...@Costco.com 

"Confidentiality Notice:  This e-mail message, including any attachments, is for the sole use to the intended recipient(s) and may contain confidential and privileged information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message."


To post to this group, send email to seleniu...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.

Greg Martz

unread,
May 24, 2017, 10:18:33 AM5/24/17
to seleniu...@googlegroups.com
Nope, even with those two ChromeOptions, still the same "Error Loading Extension".  I have added no extensions or plugins, so this is being done either by the chromedriver or selenium.


Thanks!
Greg

Greg Martz
Test Analyst III - Sr. Software Automation Analyst  |  (425)416-5039  |  gma...@Costco.com 

"Confidentiality Notice:  This e-mail message, including any attachments, is for the sole use to the intended recipient(s) and may contain confidential and privileged information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message."


Reply all
Reply to author
Forward
0 new messages