public Program(IWebDriver _webDriver) : base(_webDriver) { try { var currentUrl = GetCurrentUrl(); //SiteDriver.dismiss(); MainPageService.clickOnMancCityTitle(); var differentUrl = GetCurrentUrl(); VerifyOnClickingSubmitPageRedirects(currentUrl, differentUrl); Assert.True(ManCityService.CheckOrder1()); Assert.True(ManCityService.CheckOrder()); ManCityService.setAuthor("Author Test"); ManCityService.setEmailID("*****@*****.**"); ManCityService.setURL("www.test.com"); ManCityService.setComment("test"); ManCityService.clicksubmit(); } catch (Exception e) { Console.WriteLine(e.Message); } finally { SiteDriver.closeDriver(); } }