Tech stack stub page and changing project to be just one Web Assembly project for now

This commit is contained in:
2026-05-27 11:25:04 -04:00
parent 8a20cfec4f
commit dd74f9b69f
140 changed files with 64156 additions and 97 deletions
+25
View File
@@ -0,0 +1,25 @@
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
namespace AOW4.SeleniumTests.Driver;
public static class DriverFactory
{
public static IWebDriver CreateChromeDriver()
{
var options = new ChromeOptions();
var headless = Environment.GetEnvironmentVariable("HEADLESS");
if (!string.IsNullOrEmpty(headless) &&
(headless == "1" || headless.Equals("true", StringComparison.OrdinalIgnoreCase)))
options.AddArgument("--headless=new");
options.AddArgument("--disable-gpu");
options.AddArgument("--no-sandbox");
options.AddArgument("--disable-dev-shm-usage");
var service = ChromeDriverService.CreateDefaultService();
service.HideCommandPromptWindow = true;
return new ChromeDriver(service, options);
}
}