public ApplicationLoginSteps(IWebDriver driver, ExtentTest test, AllureCSharpCommons.Allure allureLifeCycle) { _driver = driver; _test = test; _lifecycle = allureLifeCycle; _objectFactory = new ObjectFactory(); }
/// <summary> /// This method is used to launch Url /// </summary> /// <param name="_driver"></param> public void NavigateToURL(IWebDriver _driver, AllureCSharpCommons.Allure _lifecycle) { _lifecycle.Fire(new StepStartedEvent("URL : " + Settings.AUT)); string AbsoluteURL = Settings.AbsoluteURL; string URL = Settings.AUT; URL = "https://" + URL; if ((!String.IsNullOrEmpty(AbsoluteURL))) { _driver.Navigate().GoToUrl(AbsoluteURL); } else { _driver.Navigate().GoToUrl(URL); } LogHelper.Write("Navigated to the URL"); _lifecycle.Fire(new StepFinishedEvent()); }