Exemple #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");
        }
Exemple #2
0
        //Enter the Description in Profile Section
        internal void AddDescription()
        {
            EditDescription.Click();
            Thread.Sleep(1000);
            EnterDescription.Clear();
            EnterDescription.SendKeys(ExcelLib.ReadData(2, "Description"));
            SaveDescription.Click();
            Base.Image = SaveScreenShotClass.SaveScreenshot(Driver, "Report");

            //Validate message
            Extension.MessageValidation("Description has been saved successfully");
        }
Exemple #3
0
        //Edit Earn Target on the Profile page
        public void EditdescriptionOnProfile(string description)
        {
            //Click on EditDescription icon
            driver.WaitForElementIsVisible(EditDescription);
            EditDescription.Click();

            //Enter Description based on Excel data
            Description.Clear();
            Description.SendKeys(description);

            //Click on save button to save the description
            SaveButton.Click();
        }
Exemple #4
0
        //Enter the Description in Profile Section
        internal void AddDescription()
        {
            //Clicking on Edit button
            GenericWait.ElementIsVisible(GlobalDefinitions.driver, "XPath", "//h3[text()='Description']//i[@class='outline write icon']", 6);
            EditDescription.Click();
            Thread.Sleep(1000);

            //Clearing the description textarea if any text already existing
            GenericWait.ElementIsVisible(GlobalDefinitions.driver, "XPath", "//textarea[@name='value']", 6);
            DescriptionTextBox.Clear();

            //Entering new description
            GenericWait.ElementIsVisible(GlobalDefinitions.driver, "XPath", "//textarea[@name='value']", 6);
            DescriptionTextBox.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "ProfileDescription"));

            //Clicking on Save button
            GenericWait.ElementIsVisible(GlobalDefinitions.driver, "XPath", "//h3[text()='Description']/../..//button[text()='Save']", 6);
            SaveDescription.Click();
            string img = SaveScreenShotClass.SaveScreenshot(GlobalDefinitions.driver, "Profile Description");

            //Validate message
            GlobalDefinitions.MessageValidation("Description has been saved successfully");
        }