0

我正在使用 Selenium C# + LeanFT 来自动化 Web 应用程序。我有时会在 Visual Studio 中收到此错误,我不知道为什么。有人可以阐明我如何处理这个问题:

初始化 WebDriver Chrome 时出错-> 未知错误:无法等待扩展背景页面加载:chrome-extension://hpoiplhbnkgnpjkkilfahkkcimachkkj/Agent/Ext/bg-loader.html 超时(驱动程序信息:chromedriver=2.37.543627(63642262d9fb93fb4ab52398be4286d844092a5e) ,platform=Windows NT 10.0.16299 x86_64)Automation.Test.Framework.Models.Exceptions.AtGenericException: Error initializing WebDriver Chrome ---> System.InvalidOperationException: unknown error: failed to wait for extension background page to load: chrome-extension ://hpoiplhbnkgnpjkkilfahkkcimachkkj/Agent/Ext/bg-loader.html 在 OpenQARemoDrive.Retemo.OpenQA.Selenium.Remote.RemoteWebDriver.Execute 的 UnpackAndThrowOnError(响应 errorResponse)(String driverCommandToExecute,Dictionary`2 参数)在 OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)在 OpenQA.Selenium.Remote.RemoteWebDriver..ctor( ICommandExecutor commandExecutor, ICapabilities desiredCapabilities) 在 OpenQA.Selenium.Chrome.ChromeDriver..ctor(ChromeDriverService service, ChromeOptions options, TimeSpan commandTimeout) 在 Automation.Test.Framework.Decorators.ChromeDriverDecorator..ctor(String chromeDriverDirectory, ChromeDriverOptions options) 在自动化。 Test.Framework.Decorators.AtWebDriver.get_GetDriver() --- 内部异常堆栈跟踪结束 --- 在 Symphony.AcceptanceTests 的 Automation.Test.Framework.Decorators.AtWebDriver.get_GetDriver() 处。Hooks.TestHook.RegisterAndInitializeWebDriver() 在 C:\Users\amaddox\Desktop\H\Symphony.AcceptanceTests\Symphony.AcceptanceTests\Hooks\TestHook.cs: 第 161 行在 lambda_method(Closure, IContextManager) 在 TechTalk.SpecFlow.Bindings.BindingInvoker .InvokeBinding(IBinding binding, IContextManager contextManager, Object[] arguments, ITestTracer testTracer, TimeSpan& duration) at TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.InvokeHook(IBindingInvoker invoker, IHookBinding hookBinding, HookType hookType) at TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.FireEvents (HookType hookType) 在 TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.FireScenarioEvents(HookType bindingEvent) 在 TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.OnScenarioStart(ScenarioInfo scenarioInfo) 在 TechTalk.SpecFlow。在 Symphony.AcceptanceTests.Epics.CC_TransitionFiles.Feature._9317_TransitionFilesUploadFeature.PBIXXXXBulkUploadStructuredDocs() 在 Symphony.AcceptanceTests.Epics.CC_TransitionFiles.Feature._9317_TransitionFilesUploadFeature.PBIXXXXBulkUploadStructuredDocs() 在 Symphony.AcceptanceTests.Epics.CC_TransitionFiles.Feature._9317_TransitionFilesUploadFeature.PBIXXXXBulkUploadStructuredDocs() \H\Symphony.AcceptanceTests\Symphony.AcceptanceTests\Epics\CC - 转换文件\Feature\9317_TransitionFilesUpload.feature:TechTalk.SpecRun.Framework.TaskExecutors.StaticOrInstanceMethodExecutor.ExecuteInternal(ITestThreadExecutionContext testThreadExecutionContext) 在 TechTalk.SpecRun.Framework.TaskExecutors 的第 31 行.StaticOrInstanceMethodExecutor.Execute(ITestThreadExecutionContext testThreadExecutionContext) 在 TechTalk.SpecRun.Framework.TestAssemblyExecutor。ExecuteTestNodeTask(TestNode testNode, ITaskExecutor task, TraceEventType eventType)

4

0 回答 0