Esempio n. 1
0
        internal void EditProfile()
        {
            //Populate the Excel Sheet
            GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "Profile");
            Thread.Sleep(1000);

            // Click the write icon of Availability
            AvailablityIcon.Click();
            // Select the Availability
            AvailablityType.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "AvailableTime"));
            Base.test.Log(LogStatus.Info, "Availability updated");

            //Click on Hours write icon
            HoursIcon.Click();
            Thread.Sleep(1500);
            Hours.SendKeys(Keys.ArrowDown + Keys.Enter);

            //Click on EarnTarget write icon
            EarnTargetIcon.Click();
            //Availability Hours option
            //EarnTarget.SendKeys(Keys.ArrowDown + Keys.ArrowDown + Keys.Enter);
            EarnTarget.SendKeys("More than $1000 per month");

            //Click on Discription Edit button
            EditDescription.Click();
            //Add Description
            Description.Clear();
            Thread.Sleep(1000);
            Description.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Description"));
            Save.Click();
            Assert.That(Description != null);
            Base.test.Log(LogStatus.Info, "Added Description successfully");
        }
Esempio n. 2
0
        internal void EditAvailability()
        {
            // Populate the Excel Sheet
            GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "Profile");
            Thread.Sleep(500);

            // Click the write icon of Availability
            AvailablityIcon.Click();

            // Select the type of Availability
            AvailablityType.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Availability"));
            Base.test.Log(LogStatus.Info, "Availability updated");

            // Verify if edit the Availability successfully
            IWebElement Availability = GlobalDefinitions.driver.FindElement(By.XPath("//span[contains(text(),'Time')]"));

            Assert.That(Availability.Text, Is.EqualTo("Full Time"));
        }