public void register() { //Populate the excel data ExcelLib.PopulateInCollection(Base.ExcelPath, "SignUp"); GlobalDefinitions.NavigateUrl(); //Click on Join button Join.Click(); //Enter FirstName FirstName.SendKeys(ExcelLib.ReadData(2, "FirstName")); //Enter LastName LastName.SendKeys(ExcelLib.ReadData(2, "LastName")); //Enter Email Email.SendKeys(ExcelLib.ReadData(2, "Email")); //Enter Password Password.SendKeys(ExcelLib.ReadData(2, "Password")); //Enter Password again to confirm ConfirmPassword.SendKeys(ExcelLib.ReadData(2, "ConfirmPswd")); //Click on Checkbox Terms.Click(); //Click on join button to Sign Up SubmitButton.Click(); }
public void LoginSteps() { //Populate the Excel Sheet Global.ExcelLib.PopulateInCollection(Base.ExcelPath, "SignIn"); GlobalDefinitions.NavigateUrl(); //Click on SignIn Button SignIntab.Click(); //Read username and password from excel Email.SendKeys(ExcelLib.ReadData(2, "Username")); Password.SendKeys(ExcelLib.ReadData(2, "Password")); //Click on Login Button LoginBtn.Click(); }
internal void LoginSteps() { //Populate the excel data GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPathShareSkill, "SignIn"); //Navigate to URL GlobalDefinitions.NavigateUrl(); //Click on Sign In button SignIntab.Click(); //Enter UserName Email.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Username")); //Enter Password Password.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Password")); //Click Login Button LoginBtn.Click(); }