Open chandramohand opened 1 year ago
@chandramohand You can close the browser AfterScenario using the following dispose method. xrmApp.Dispose();
Hope that helps
Hi @RaviYenumula, Thanks for your reply.
The issue has been resolved while initialling the webdriver xrmApp declared as Private, I was unable to quit that browser.
Once declared as public its working fine.
Thanks,
Chandra.
@chandramohand Glad it sorted out.
I am using Specflow, Easy Repro, Selenium and C#, facing issue while closing app, To createapp I am using the following method. public static void AdfsLoginAction(LoginRedirectEventArgs args) { args.Driver.FindElement(By.Name("passwd")).SendKeys(args.Password.ToUnsecureString()); //Input webelemnt has been changed from Password to Passwd args.Driver.ClickWhenAvailable(By.Id("idSIButton9"), new TimeSpan(0, 0, 2)); Thread.Sleep(500); args.Driver.WaitForPageToLoad(); if (args.Driver.HasElement(By.Id("idSIButton9"))) { args.Driver.ClickWhenAvailable(By.Id("idSIButton9")); }
}
where I see the driver is getting invoked through LoginRedirectEventArgs, after the test execution how to close the browser? Can anyone please help.
Thanks, Chandra.