예제 #1
0
 internal void EditProfile()
 {
     //Populate the Excel Sheet
     Global.ExcelLib.PopulateInCollection(Base.ExcelPath, "Profile");
     GlobalDefinitions.Wait();
     EditProfileicon.Click();
     EditFirstName.Clear();
     EditFirstName.SendKeys(ExcelLib.ReadData(2, "FirstName"));
     EditLasttName.Clear();
     EditLasttName.SendKeys(ExcelLib.ReadData(2, "LastName"));
     ProfileSaveBtn.Click();
     GlobalDefinitions.driver.Navigate().Refresh();
     GlobalDefinitions.Wait();
     Availability.Click();
     AvailabilityTime.SendKeys(ExcelLib.ReadData(2, "Availability"));
     Hours.Click();
     AvailabilityHour.SendKeys(ExcelLib.ReadData(2, "SelectHours"));
     GlobalDefinitions.Wait();
     EarnTarget.Click();
     AvailabilityTarget.SendKeys(ExcelLib.ReadData(2, "EarnTraget"));
     GlobalDefinitions.Wait();
     DescriptionBtn.Click();
     TxtDescription.Clear();
     GlobalDefinitions.Wait();
     TxtDescription.SendKeys(ExcelLib.ReadData(2, "EditDesc"));
     DesSaveButton.Click();
 }
 //add availability for new user
 public void ClickAvailability()
 {
     Base.driver.WaitForElement(By.XPath("//div[@class='extra content']/descendant::div[5]/span/i"));
     Availability.Click();
 }