Ejemplo n.º 1
0
 //Add new Advertised Jobs
 internal void AddingAdvertisedJobs()
 {
     //To skip the highlighted option
     SkipButton?.Click();
     System.Threading.Thread.Sleep(5000);
     // Populating the data from Excel
     ExcelLib.PopulateInCollection(Base.ExcelPath, "AdvisedJobs");
     System.Threading.Thread.Sleep(3000);
     OwnersSelect.Click();
     System.Threading.Thread.Sleep(3000);
     AdvertisedJob.Click();
     System.Threading.Thread.Sleep(3000);
     NewJobButton.Click();
     SelectPropertyForJob.Click();
     PropertyNameDropdown.Click();
     TitleForJob.SendKeys(ExcelLib.ReadData(2, "Value"));
     MaximumBudget.SendKeys(ExcelLib.ReadData(3, "Value"));
     JobDescription.SendKeys(ExcelLib.ReadData(4, "Value"));
     // Image upload
     Global.Driver.driver.FindElement(By.Id("file-upload")).Click();
     System.Threading.Thread.Sleep(10000);
     SendKeys.SendWait(@"E:\MVP Studio\Task-2\images.jpg");
     System.Threading.Thread.Sleep(10000);
     SendKeys.SendWait(@"{Enter}");
     System.Threading.Thread.Sleep(5000);
     SubmitForJob.Click();
 }