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(); }
public void Date_Time_Picker() { //Select Starting Date from Excel StartDateDropDown.SendKeys(ExcelLibHelp.ReadData(2, "Startdate")); //Select Ending Date from Excel EndDateDropDown.SendKeys(ExcelLibHelp.ReadData(2, "Enddate")); ////Select Starting time from Excel //StartTimeDropDown.SendKeys(ExcelLibHelp.ReadData(2, "Starttime")); ////Select Endignng time from Excel //StartTimeDropDown.SendKeys(ExcelLibHelp.ReadData(2, "Endtime")); for (int i = 1; i <= 7; i++) { var day_checkbox = GlobalDefinitions.driver.FindElement(By.XPath("(//input[contains(@name,'Available')])[" + i + "]")); var StartTime = GlobalDefinitions.driver.FindElement(By.XPath("(//input[contains(@name,'StartTime')])[" + i + "]")); var EndTime = GlobalDefinitions.driver.FindElement(By.XPath("(//input[contains(@name,'EndTime')])[" + i + "]")); var label = GlobalDefinitions.driver.FindElement(By.XPath("//div[@class='fields'][" + (1 + i) + "]/div/div//label")); if (ExcelLibHelp.ReadData(2, "Selectday") == label.Text) { Click_Action(day_checkbox); StartTime.SendKeys(ExcelLibHelp.ReadData(2, "Starttime")); EndTime.SendKeys(ExcelLibHelp.ReadData(2, "Endtime")); } } }
public void AddNewCertification() { //Click on Certification Button CertificationBtn.Click(); //Click on Add New Button AddNew.Click(); //Click on Certificate CertificateTxtBx.Click(); //Sending data to certificate CertificateTxtBx.SendKeys(ExcelLibHelp.ReadData(3, "Certificate")); //Click on Certificate From Txt Box CrtfctFrm.Click(); //Sending data to certificate From text box CrtfctFrm.SendKeys(ExcelLibHelp.ReadData(3, "From")); //Click on Year Dropdown Year.Click(); //Sending value to Year dropdown GlobalDefinitions.wait(30); Year.SendKeys(ExcelLibHelp.ReadData(3, "Year")); //Click on Add GlobalDefinitions.wait(30); add.Click(); }
//Custom Method- Select Service Type public void selectServiceType() { if (ExcelLibHelp.ReadData(2, "ServiceType") == "Hourly basis service") { Service_Type_Hourly.Click(); } else { Service_Type_One_Off.Click(); } }
public void AddDescription() { //Click on Pen sign of Description DscrptnPen.Click(); //Click on Description Text Box DscrptnTxtBx.Click(); //Sending dataTo description DscrptnTxtBx.SendKeys(ExcelLibHelp.ReadData(3, "Profile Description")); //Click on Save save.Click(); }
public void ChangePassword() { //Click Forget Password link Forget_Password.Click(); //Click Forget Email verify link email_verify.Click(); //Sending the email address //sending values to email id email_verify.SendKeys(ExcelLibHelp.ReadData(2, "Username")); //Click on "Send Verification" Box Send_Verification.Click(); }
public void LoginSteps() { Global.GlobalDefinitions.driver.Navigate().GoToUrl(ExcelLibHelp.ReadData(2, "Url")); //Click the sign-In tab SignIntab.Click(); //sending values to email id Email.SendKeys(ExcelLibHelp.ReadData(2, "Username")); //sending velues of password Password.SendKeys(ExcelLibHelp.ReadData(2, "Password")); //Click login Button LoginBtn.Click(); Global.GlobalDefinitions.wait(5); }
public void ShareSkillAdd() { //Click on Share Skill Button on Profile Page Click_Action(ShareSkillButton); //Click TITLE Textbox Click_Action(Title); //Sending Texts to Title box from Custom Method EnterText EnterText(Title, "Software Tester"); //Click DESCRIPTION Dropdown Click_Action(Description); //Sending Values from Excel Library Description.SendKeys(ExcelLibHelp.ReadData(2, "Description")); //Click Category DropDown Click_Action(CategoryDropDown); //Selecting Values from "CATEGORY" Dropdown box Drop_Down_Select(CategoryDropDown, "6"); // Click Sub Category DropDown Click_Action(SubCategoryDropDown); //Selecting Values from "SUB CATEGORY" Dropdown Box Drop_Down_Select(SubCategoryDropDown, "4"); //Entering Tags and then Hit ENTER button Tags.SendKeys(ExcelLibHelp.ReadData(2, "Tags")); Tags.SendKeys(Keys.Enter); Global.GlobalDefinitions.wait(3000); //Select Service Type radio Button and Click selectServiceType(); Global.GlobalDefinitions.wait(3000); //Select Location Type Radio button and then Click Click_Action(Location_OnSite); ////Select date time picker Global.GlobalDefinitions.wait(3000); Date_Time_Picker(); Global.GlobalDefinitions.wait(13000); //Select Skill Trade Radio button and then click Click_Action(Credit_Option); Global.GlobalDefinitions.wait(3000); //Entering the Credit amount EnterText(CreditAmount, "30"); //click on work Sample Huge + sign Click_Action(WorkSample); //Upload Work Sample FileUpload(); //Enter Skill Exchange and then Hit Enter Button //SkillExchange.SendKeys(ExcelLibHelp.ReadData(2, "Skill-Exchange")); //SkillExchange.SendKeys(Keys.Enter); Global.GlobalDefinitions.wait(3000); //Click Save button Click_Action(Save); }