internal void register()
        {
            //Populate the excel data
            ExcelLibHelp.PopulateInCollection(Base.ExcelPath, "SignUp");
            //Click on Join button
            Join.Click();

            //Enter FirstName
            FirstName.SendKeys(ExcelLibHelp.ReadData(2, "FirstName"));

            //Enter LastName
            LastName.SendKeys(ExcelLibHelp.ReadData(2, "LastName"));

            //Enter Email
            Email.SendKeys(ExcelLibHelp.ReadData(2, "Email"));

            //Enter Password
            Password.SendKeys(ExcelLibHelp.ReadData(2, "Password"));

            //Enter Password again to confirm
            ConfirmPassword.SendKeys(ExcelLibHelp.ReadData(2, "ConfirmPswd"));

            //Click on Checkbox
            Checkbox.Click();

            //Click on join button to Sign Up
            JoinBtn.Click();
        }
Example #2
0
 public Certification(IWebDriver driver)
 {
     this.driver = GlobalDefinitions.driver;
     ExcelLibHelp.PopulateInCollection(@"MarsFramework\ExcelData\TestDataShareSkill.xlsx", "Certification");
     // ExcelLibHelp.PopulateInCollection(@"C:\Users\abhij\Desktop\Competition Task My work\marsframework(Cloned)\MarsFramework\ExcelData\TestDataShareSkill", "Share Skill");
     // PageFactory.InitElements(Global.GlobalDefinitions.driver, this);
 }
 public SignUp()
 {
     ExcelLibHelp.PopulateInCollection(@"MarsFramework\ExcelData\TestDataShareSkill.xlsx", "SignUp");
     PageFactory.InitElements(Global.GlobalDefinitions.driver, this);
 }