public void GivenUserINavigatedToApplicationUsing(string BaseURL) { try { DriverClass.StartTest(TestConfig.clientUrl); } catch (Exception E) { Console.WriteLine("Test Failed: could not load the application : {0}", E.Message); DriverClass.CloseTest(); throw; } }
public void GivenUserNavigatesToApplicationLoginPage(String site) { try { DriverClass.StartTest(TestConfig.externalUrl); LoginPage loginPage = new LoginPage(CustomBaseClass.MyDriver); //Comment for Applications where default page is Login //loginPage.linkLogin.Click(); } catch (Exception E) { Console.WriteLine("Test Failed: could not load the application : {0}", E.Message); DriverClass.CloseTest(); throw; } }