Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Selenium 初始化WebDriver Chrome时出错,导致无法等待扩展后台加载_Selenium_Selenium Webdriver_Selenium Chromedriver_Leanft - Fatal编程技术网

Selenium 初始化WebDriver Chrome时出错,导致无法等待扩展后台加载

Selenium 初始化WebDriver Chrome时出错,导致无法等待扩展后台加载,selenium,selenium-webdriver,selenium-chromedriver,leanft,Selenium,Selenium Webdriver,Selenium Chromedriver,Leanft,我正在使用Selenium C#+LeanFT自动化web应用程序。我有时会在VisualStudio中遇到这个错误,我不知道为什么。有人能告诉我如何处理这个问题吗: 初始化WebDriver Chrome时出错->未知错误:未能等待加载扩展背景页:Chrome-extension://hpoiplhbnkgnpjkkilfahkkcimachkkj/Agent/Ext/bg-loader.html 从超时 (驱动程序信息:chromedriver=2.37.543627(63642262d9f

我正在使用Selenium C#+LeanFT自动化web应用程序。我有时会在VisualStudio中遇到这个错误,我不知道为什么。有人能告诉我如何处理这个问题吗:

初始化WebDriver Chrome时出错->未知错误:未能等待加载扩展背景页:Chrome-extension://hpoiplhbnkgnpjkkilfahkkcimachkkj/Agent/Ext/bg-loader.html 从超时 (驱动程序信息:chromedriver=2.37.543627(63642262d9fb93fb4ab52398be4286d844092a5e),平台=Windows NT 10.0.16299 x8664)Automation.Test.Framework.Models.Exception.AtGenericeException:初始化WebDriver Chrome时出错-->System.InvalidOperationException:未知错误:未能等待扩展后台页面加载:Chrome-extension://hpoiplhbnkgnpjkkilfahkkcimachkkj/Agent/Ext/bg-loader.html 从超时 (驱动程序信息:chromedriver=2.37.543627(63642262d9fb93fb4ab52398be4286d844092a5e),平台=Windows NT 10.0.16299 x8664) 在OpenQA.Selenium.Remote.RemoteWebDriver.UnpackantRownerError(响应错误响应)中 在OpenQA.Selenium.Remote.RemoteWebDriver.Execute(stringdrivercommandtoexecute,Dictionary`2参数) 在OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities) 在OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor命令执行器,ICapabilities desiredCapabilities) 在OpenQA.Selenium.Chrome.ChromeDriver..ctor(ChromeDriver服务,ChromeOptions选项,TimeSpan命令超时) 位于Automation.Test.Framework.Decorators.ChromeDriverDecorator..ctor(字符串chromeDriverDirectory,ChromeDriverOptions) 在Automation.Test.Framework.Decorators.AtWebDriver.get_GetDriver()中 ---内部异常堆栈跟踪的结束--- 在Automation.Test.Framework.Decorators.AtWebDriver.get_GetDriver()中 在C:\Users\amaddox\Desktop\H\Symphony.AcceptanceTests\Symphony.AcceptanceTests\Hooks\TestHook.RegisterAndInitializeWebDriver()中 在lambda_方法(闭包,IContextManager) 位于TechTalk.SpecFlow.Bindings.BindingInvoker.InvokeBinding(IBinding绑定、IContextManager contextManager、对象[]参数、ITestTracer testTracer、时间跨度和持续时间) 位于TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.InvokeHook(IBindingInvoker调用程序、IHookBinding钩子绑定、钩子类型钩子类型) 位于TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.FireEvents(HookType-HookType) 位于TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.FireScenarioEvents(HookType bindingEvent) 在TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.OnScenarioStart(ScenarioInfo ScenarioInfo) 位于TechTalk.SpecFlow.TestRunner.OnScenarioStart(ScenarioInfo ScenarioInfo) 在Symphony.AcceptanceTests.Epics.CC_TransitionFiles.Feature._9317_TransitionFiles uploadfeature.ScenarioSetup(ScenarioInfo ScenarioInfo) 在C:\Users\amaddox\Desktop\H\Symphony.AcceptanceTests\Symphony.AcceptanceTests\Symphony.CC\u Transition Files\Feature\9317\u Transition Files\UploadFeature()中的Symphony.AcceptanceTests.Epics.CC\u Transition Files.Feature.pbixxxBulkuploadStructureDdocs()中 位于TechTalk.SpecRun.Framework.TaskExecutors.StaticOrInstanceMethodExecutor.ExecuteInternal(ITestThreadExecutionContext testThreadExecutionContext) 位于TechTalk.SpecRun.Framework.TaskExecutors.StaticOrInstanceMethodExecutor.Execute(ITestThreadExecutionContext testThreadExecutionContext) 位于TechTalk.SpecRun.Framework.TestAssemblyExecutor.ExecuteTestNodeTask(TestNode TestNode,ITaskExecutor任务,TraceEventType eventType)


加载时间长的插件可能是?@TarunLalwani你是什么意思?有办法解决吗?不确定,但是你能检查一下插件是否太慢,导致问题还是其他原因吗?我也面临同样的问题。你现在有解决办法吗?