public EditWorkItemPage EditDescription(string description) { var uiDescription = new HtmlTextArea(browser); uiDescription.SearchProperties.Add(HtmlControl.PropertyNames.Id, EditWorkItemPageConst.EDIT_DESCRIPTION_TEXTAREA_ID); uiDescription.Find(); browser.ExecuteScript("CKEDITOR.instances['" + EditWorkItemPageConst.EDIT_DESCRIPTION_TEXTAREA_ID + "'].setData(\"" + description + "\")"); return(this); }
public EditDailyPlanPage InsertNote(string note) { var uiNote = new HtmlTextArea(browser); uiNote.SearchProperties.Add(HtmlControl.PropertyNames.Class, AddDailyPlanPageConst.ADD_NOTE_TEXT_CLASS); uiNote.Find(); uiNote.SetProperty(HtmlEdit.PropertyNames.Text, note); return(this); }