WebDriverManager не может найти Chrome для тестирования в Linux ARM64 ⇐ C#
WebDriverManager не может найти Chrome для тестирования в Linux ARM64
I want to run Selenium with Chrome on Linux ARM64, using .net 6 program dockerized.
.csproject
FooService.cs
new DriverManager().SetUpDriver(new ChromeConfig(), VersionResolveStrategy.MatchingBrowser, Architecture.X64); var cService = ChromeDriverService.CreateDefaultService(); _driver = new ChromeDriver(cService, options); program works fine until Selenium part is triggered.
System.Exception: Unable to locate installed browser for runtime platform Unix at WebDriverManager.Helpers.RegistryHelper.GetInstalledBrowserVersionLinux(String[] executableAndArgumentsPairs) at WebDriverManager.DriverConfigs.Impl.ChromeConfig.GetRawBrowserVersion() at WebDriverManager.DriverConfigs.Impl.ChromeConfig.GetMatchingBrowserVersion() at WebDriverManager.DriverManager.GetVersionToDownload(IDriverConfig config, String version) at WebDriverManager.DriverManager.SetUpDriver(IDriverConfig config, String version, Architecture architecture) at Blabla.Services.Foo.StartChrome() in /src/Bla/FooService.cs:line 46 I installed manually in the container chrome linux64 https://storage.googleapis.com/chrome-f ... inux64.zip
and also tried with chrome mac-arm64 https://storage.googleapis.com/chrome-f ... -arm64.zip
curl -L -o chrome-headless-shell.zip "https://storage.googleapis.com/chrome-f ... shell-.zip" unzip chrome-headless-shell.zip -d /opt rm chrome-headless-shell.zip export PATH="/opt:${PATH}" but error remains...
Источник: https://stackoverflow.com/questions/780 ... inux-arm64
I want to run Selenium with Chrome on Linux ARM64, using .net 6 program dockerized.
.csproject
FooService.cs
new DriverManager().SetUpDriver(new ChromeConfig(), VersionResolveStrategy.MatchingBrowser, Architecture.X64); var cService = ChromeDriverService.CreateDefaultService(); _driver = new ChromeDriver(cService, options); program works fine until Selenium part is triggered.
System.Exception: Unable to locate installed browser for runtime platform Unix at WebDriverManager.Helpers.RegistryHelper.GetInstalledBrowserVersionLinux(String[] executableAndArgumentsPairs) at WebDriverManager.DriverConfigs.Impl.ChromeConfig.GetRawBrowserVersion() at WebDriverManager.DriverConfigs.Impl.ChromeConfig.GetMatchingBrowserVersion() at WebDriverManager.DriverManager.GetVersionToDownload(IDriverConfig config, String version) at WebDriverManager.DriverManager.SetUpDriver(IDriverConfig config, String version, Architecture architecture) at Blabla.Services.Foo.StartChrome() in /src/Bla/FooService.cs:line 46 I installed manually in the container chrome linux64 https://storage.googleapis.com/chrome-f ... inux64.zip
and also tried with chrome mac-arm64 https://storage.googleapis.com/chrome-f ... -arm64.zip
curl -L -o chrome-headless-shell.zip "https://storage.googleapis.com/chrome-f ... shell-.zip" unzip chrome-headless-shell.zip -d /opt rm chrome-headless-shell.zip export PATH="/opt:${PATH}" but error remains...
Источник: https://stackoverflow.com/questions/780 ... inux-arm64
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Исключение NoSuchMethodError в строке «WebDriverManager.chromedriver().setup();
Anonymous » » в форуме JAVA - 0 Ответы
- 8 Просмотры
-
Последнее сообщение Anonymous
-