/// <summary> /// Fill content to the content block widget /// </summary> /// <param name="content">The content value</param> public void FillContentToContentBlockWidget(string content) { HtmlTableCell editable = EM.GenericContent .ContentBlockWidget .EditableArea .AssertIsPresent("Editable area"); editable.ScrollToVisible(); editable.Focus(); editable.MouseClick(); Manager.Current.Desktop.KeyBoard.TypeText(content); }
/// <summary> /// Selects the content in editable area. /// </summary> public void SelectAllContentInEditableArea() { HtmlTableCell editable = EM.GenericContent .ContentBlockWidget .EditableArea .AssertIsPresent("Editable area"); editable.ScrollToVisible(); editable.Focus(); editable.MouseClick(); Manager.Current.Desktop.KeyBoard.KeyDown(System.Windows.Forms.Keys.Control); Manager.Current.Desktop.KeyBoard.KeyPress(System.Windows.Forms.Keys.A); Manager.Current.Desktop.KeyBoard.KeyUp(System.Windows.Forms.Keys.Control); }