mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Make selenium work on CI
This commit is contained in:
@@ -34,7 +34,14 @@ namespace BTCPayServer.Tests
|
||||
ChromeOptions options = new ChromeOptions();
|
||||
options.AddArguments("headless"); // Comment to view browser
|
||||
options.AddArguments("window-size=1200x600"); // Comment to view browser
|
||||
Driver = new ChromeDriver(Directory.GetCurrentDirectory(), options);
|
||||
if (Server.PayTester.InContainer)
|
||||
{
|
||||
Driver = new OpenQA.Selenium.Remote.RemoteWebDriver(new Uri("http://selenium:4444/wd/hub"), options);
|
||||
}
|
||||
else
|
||||
{
|
||||
Driver = new ChromeDriver(Directory.GetCurrentDirectory(), options);
|
||||
}
|
||||
Driver.Navigate().GoToUrl(Server.PayTester.ServerUri);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user