天道酬勤,学无止境

chrome-automation-extension

无法使用Selenium Webdriver打开Chrome浏览器。 管理员禁止加载解压的扩展程序(Unable to open chrome browser using Selenium Webdriver. Loading unpacked extensions are disabled by administrator)

问题 我正在使用Selenium Webdriver,C#,Visual Studio和Chrome浏览器来自动化我的应用程序。 当硒试图打开chrome浏览器时,我的弹出式菜单下方出现提示。 Failed to load extension from:C:\Users\VARA~1.PAK\AppData\Local\Temp\scoped_dir6712_14913\internal. Loading of unpacked extensions is disabled by the administrator. 单击弹出窗口的“确定”按钮后,Chrome浏览器已成功打开,但由于出现以下错误导致测试失败。 Test Name: _3_EnterDetailsAndSelectAnAddress_John Test FullName: Veolia.BrentGWP.UserStories.Features.BrentGWPFeature._3_EnterDetailsAndSelectAnAddress_John Test Source: : line 2147483647 Test Outcome: Failed Test Duration: 0:00:47.8059413 Result Message: Test method Veolia.BrentGWP

2021-06-01 10:40:50    分类:技术分享    c#   selenium   google-chrome   selenium-chromedriver   chrome-automation-extension

Unable to open chrome browser using Selenium Webdriver. Loading unpacked extensions are disabled by administrator

I am automating my application using Selenium Webdriver, C#, Visual Studio and Chrome browser. I am getting below popup when selenium tried to open the chrome browser. Failed to load extension from:C:\Users\VARA~1.PAK\AppData\Local\Temp\scoped_dir6712_14913\internal. Loading of unpacked extensions is disabled by the administrator. Once I click on OK button of the popup, Chrome is opening successfully but my test is failing due to below error. Test Name: _3_EnterDetailsAndSelectAnAddress_John Test FullName: Veolia.BrentGWP.UserStories.Features.BrentGWPFeature._3_EnterDetailsAndSelectAnAddress

2021-04-27 08:29:16    分类:问答    c#   selenium   google-chrome   selenium-chromedriver   chrome-automation-extension

错误加载扩展名无法从'C:\ .. \ Local \ Temp \ scoped_dir6312_32763 \ internal'加载扩展名。 已解压缩的扩展程序的加载已禁用(Error Loading Extension Could not load extension from 'C:\..\Local\Temp\scoped_dir6312_32763\internal'. Loading of unpacked extensions is disabled)

问题 当运行我的webdriver脚本时,会出现一个确认对话框,其中包含以下消息: 加载扩展程序时出错无法从“ C:\ Users \用户名\ AppData \ Local \ Temp \ scoped_dir6312_32763 \ internal”加载扩展名。 管理员禁止加载解压缩的扩展程序。 您想重试吗? 是否 单击“是”可以运行测试。 我不确定为什么会提示此对话框, 我已经尝试了下面提到的解决方法,但是它们都没有起作用: 用最新版本替换了chrome驱动程序。 在脚本中添加了以下代码: ChromeOptions options = new ChromeOptions(); options.addArguments("no-sandbox"); options.addArguments("disable-extensions"); driver = new ChromeDriver(options); 下面是我的测试方法: public void Login() throws IOException{ test = extent.startTest("Login"); signInPage = new SignInPage(driver); signInPage.enterMailId(); String screenShotPath = GetScreenShot

2021-03-30 21:21:00    分类:技术分享    java   selenium   google-chrome   selenium-chromedriver   chrome-automation-extension

Could not load extension from scoped_dir6312_32763/internal.Loading of unpacked extensions is disabled by the administrator with ChromeDriver Selenium

I have created a project using vue-cli 3 which automatically set up e2ed tests for me. When I try to run the tests, I get a popup from chrome, telling me that "Loading of unpacked extensions is disabled by the administrator". This seems to be a common problem, one solution offered elsewhere is ChromeOptions o = new ChromeOptions(); o.addArguments("disable-extensions"); o.addArguments("--start-maximized"); WebDriver driver = new ChromeDriver(o); Now this is Java code, but I assume there's a way to achieve the same thing in a vue.js project. However, I have no idea where to put this

2021-03-28 06:37:28    分类:问答    java   selenium   google-chrome   selenium-chromedriver   chrome-automation-extension

Error Loading Extension Could not load extension from 'C:\..\Local\Temp\scoped_dir6312_32763\internal'. Loading of unpacked extensions is disabled

When am running my webdriver script, am getting a confirmation dialog box with below message: Error Loading Extension Could not load extension from 'C:\Users\username\AppData\Local\Temp\scoped_dir6312_32763\internal'. Loading of unpacked extensions is disabled by the administrator. Would you like to retry? Yes No Clicking "yes" lets the tests run. I am not sure why am I getting this dialog box prompted, I've tried the mentioned workarounds below but neither of them are working: Replaced chrome driver with latest version. Added below code in my script: ChromeOptions options = new ChromeOptions(

2021-03-23 07:42:44    分类:问答    java   selenium   google-chrome   selenium-chromedriver   chrome-automation-extension