[BeforeScenario("web")] public static void InitWebScenario() { InitWithUri(new Uri((Kernel ?? throw new InvalidOperationException()).Get().StrWebDriverRemoteAddressMpek)); } [BeforeScenario("webAPalac")] public static void InitWebScenariosdsdd() { InitWithUri(new Uri((Kernel ?? throw new InvalidOperationException()).Get().StrWebDriverRemoteAddressMpek)); } private static void InitWithUri(Uri uri) { var options = new ChromeOptions(); options.AddArgument("--start-maximized"); if (!Kernel.GetBindings(typeof(IWebDriver)).Any()) Kernel.Bind().To().InSingletonScope() .WithConstructorArgument("remoteAddress", uri) .WithConstructorArgument("options", options); }