Пример #1
0
        internal void AddDescription()
        {
            GlobalDefinitions.ExcelLib.PopulateInCollection(MarsResource.ExcelPath, "Profile");

            //TODO
            //GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("(//i[contains(@class,'outline write icon')])[1]"), 2000);
            Thread.Sleep(2000);
            DescriptionEditButton.Click();
            GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("//textarea[contains(@maxlength,'600')]"), 20);
            DescriptionTextField.Clear();
            DescriptionTextField.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Description"));
            DescriptionSaveButton.Click();
        }
 public void FillDescriptionTextField(string text)
 {
     DescriptionTextField.Clear();
     DescriptionTextField.SendKeys(text);
 }