mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
Added file location check
This commit is contained in:
@@ -56,6 +56,10 @@ public static class AppHelper
|
|||||||
options.AddArgument("--no-sandbox");
|
options.AddArgument("--no-sandbox");
|
||||||
options.AddArgument("--disable-dev-shm-usage");
|
options.AddArgument("--disable-dev-shm-usage");
|
||||||
options.AddArgument("--window-size=1920,1080");
|
options.AddArgument("--window-size=1920,1080");
|
||||||
|
if (File.Exists("/usr/bin/chromium-browser"))
|
||||||
|
{
|
||||||
|
options.BinaryLocation = "/usr/bin/chromium-browser";
|
||||||
|
}
|
||||||
return new ChromeDriver(options);
|
return new ChromeDriver(options);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user