public void InputControls() { try { var logInData = logInType.GetSingleData(); var logInListData = logInType.GetMultipleData(); Expression <Func <LogIn, string> > passwordExpr = login => login.Password; Expression <Func <LogIn, string> > userNameExpr = login => login.UserName; var filteredEntity = logInType.SetEntityField <string>(passwordExpr, TestDataConstants.PASSWORD); var filteredEntities = logInType.SetEntityFields <string>(userNameExpr, TestDataConstants.USERNAMES); FirstName.SendKeys("Unisys123"); LastName.SendKeys("4356"); Email.SendKeys("MyAutomation43567"); Password.SendKeys("1efficient#"); SelectElement selector = new SelectElement(Code); selector.SelectByValue("IN"); Phone.SendKeys("9886328047"); Month.Click(); Day.SendKeys("22"); Year.SendKeys("1987"); Gender.SendKeys("Male"); Continue.Click(); SendCode.Click(); } catch (Exception ex) { throw; } }
public void FindFlights() { Continue.Click(); Assert.AreEqual(driver.Title, "Select a Flight: Mercury Tours"); }