Chrome 58, Chromedriver 2.29, selenium 3.4.0 and error

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Chrome 58, Chromedriver 2.29, selenium 3.4.0 and error

Greg Martz-2
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  |  [hidden email] 

"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."

--
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 [hidden email].
To post to this group, send email to [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: Chrome 58, Chromedriver 2.29, selenium 3.4.0 and error

Nick Boyle
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

On 24 May 2017 at 08:32, Greg Martz <[hidden email]> wrote:
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  |  <a href="tel:(425)%20416-5039" value="+14254165039" target="_blank">(425)416-5039  |  [hidden email] 

"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."

--
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 [hidden email].
To post to this group, send email to [hidden email].
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.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAEfqskjQFdtp96S1Am6WHnXT6uuihH6cgR7fhvYuzMwDkLxHBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Chrome 58, Chromedriver 2.29, selenium 3.4.0 and error

Greg Martz-2
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  |  [hidden email] 

"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."


On Tue, May 23, 2017 at 3:37 PM, Nick Boyle <[hidden email]> wrote:
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

On 24 May 2017 at 08:32, Greg Martz <[hidden email]> wrote:
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  |  <a href="tel:(425)%20416-5039" value="+14254165039" target="_blank">(425)416-5039  |  [hidden email] 

"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."

--
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 [hidden email].
To post to this group, send email to [hidden email].
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.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAEfqskjQFdtp96S1Am6WHnXT6uuihH6cgR7fhvYuzMwDkLxHBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAJ5e%3DehGpNtFZ7XScKc63WXKP1v2jSrz2DEFVq89aYN25cV4AA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Chrome 58, Chromedriver 2.29, selenium 3.4.0 and error

Greg Martz-2
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  |  [hidden email] 

"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."


On Wed, May 24, 2017 at 7:10 AM, Greg Martz <[hidden email]> wrote:
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  |  [hidden email] 

"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."


On Tue, May 23, 2017 at 3:37 PM, Nick Boyle <[hidden email]> wrote:
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

On 24 May 2017 at 08:32, Greg Martz <[hidden email]> wrote:
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  |  <a href="tel:(425)%20416-5039" value="+14254165039" target="_blank">(425)416-5039  |  [hidden email] 

"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."

--
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 [hidden email].
To post to this group, send email to [hidden email].
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.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAEfqskjQFdtp96S1Am6WHnXT6uuihH6cgR7fhvYuzMwDkLxHBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAJ5e%3DejAVMTH7tmSGLNfCuBd6j2UvNBQcNpXF0ES0Dhb4HMGew%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.