/// <summary> /// Selects the link text in editable area. /// </summary> /// <param name="text">The text.</param> public void SelectLinkInEditableArea(string linkText) { Browser frame = this.GetContentBlockFrame(); HtmlAnchor content = frame.Find.ByExpression <HtmlAnchor>("tagName=a", "InnerText=" + linkText); Rectangle contentRect = content.GetRectangle(); Point startPoint = new Point(contentRect.X, contentRect.Y); Point endPoint = new Point(contentRect.X + contentRect.Width, contentRect.Y + contentRect.Height); content.Focus(); content.MouseClick(); ActiveBrowser.Manager.Desktop.Mouse.DragDrop(startPoint, endPoint); }