我們正在調查在我們的 Azure DevOps 管道中執行 Power Platform 自動化測驗。
當我們從 Power Platform 會話中運行測驗時,測驗運行并成功通過。
但是,當我們在管道中運行它們(意味著它們在我們創建的 Windows 構建代理上執行)時,我們會收到以下錯誤。
該框架使用 Selenium 作為測驗執行堆疊的一部分。
有沒有其他人經歷過這個并解決了它?
Error Message:
Test method Microsoft.PowerApps.TestAutomation.Tests.TestAutomation.RunTestAutomation threw exception:
System.InvalidOperationException: session not created
from disconnected: Unable to receive message from renderer
(Session info: chrome=99.0.4844.51) (SessionNotCreated)
Stack Trace:
at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)
at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
at OpenQA.Selenium.Chrome.ChromeDriver..ctor(ChromeDriverService service, ChromeOptions options, TimeSpan commandTimeout)
at Microsoft.PowerApps.TestAutomation.Browser.BrowserDriverFactory.CreateWebDriver(BrowserOptions options) in C:\agent\_work\4\s\test\sdk\PowerAppsTestAutomation\Microsoft.PowerApps.TestAutomation.Browser\BrowserDriverFactory.cs:line 25
at Microsoft.PowerApps.TestAutomation.Browser.InteractiveBrowser.get_Driver() in C:\agent\_work\4\s\test\sdk\PowerAppsTestAutomation\Microsoft.PowerApps.TestAutomation.Browser\InteractiveBrowser.cs:line 85
at Microsoft.PowerApps.TestAutomation.Browser.BrowserPage.Execute[TResult](BrowserCommandOptions options, Func`2 delegate) in C:\agent\_work\4\s\test\sdk\PowerAppsTestAutomation\Microsoft.PowerApps.TestAutomation.Browser\BrowserPage.cs:line 182
at Microsoft.PowerApps.TestAutomation.Api.TestAutomation.GetTestURLs(String filePath) in C:\agent\_work\4\s\test\sdk\PowerAppsTestAutomation\Microsoft.PowerApps.TestAutomation.Api\Pages\TestAutomation.cs:line 52
at Microsoft.PowerApps.TestAutomation.Tests.TestAutomation.RunTestAutomation() in C:\agent\_work\4\s\test\sdk\PowerAppsTestAutomation\Microsoft.PowerApps.TestAutomation.Tests\TestAutomation\RunTestAutomation.cs:line 68
uj5u.com熱心網友回復:
在洗掉并重新安裝 Chrome 瀏覽器和 chromedriver 后,我們自己找到了答案。
它們必須是完全相同的版本,我們的版本稍顯遜色。
一旦我們在 99.0.4844.51 版本上安裝了 chromedriver 和 Chrome 瀏覽器,這個問題就消失了。
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/439683.html
上一篇:使用硒登錄蘋果連接總是需要驗證
