public void LoginTest() { //Retriving Data from Excel string UserName = TestContext.DataRow["UserName"].ToString(); string Password = TestContext.DataRow["Password"].ToString(); //create object for environment window = BrowserWindow.Launch(new Uri(_environment)); window.CloseOnPlaybackCleanup = false; //create object for page g = new HoneywellFirstLoginLogoff(window); //Call Login funtion g.Login(UserName, Password); }
public void LogoffTest() { //create object for environment window = BrowserWindow.Locate("FDAdminDashBoard"); window.CloseOnPlaybackCleanup = false; //create object for page g = new HoneywellFirstLoginLogoff(window); //Call Logoff Function g.Logoff(); }