This question is locked. New answers and comments are not allowed.
Hi,
I'm trying to simulate the clicking on a context menu item. I have been using the following code.
_Manager.ActiveBrowser.NavigateTo("http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/contextmenu/defaultcs.aspx");
RadTreeView tree = _Manager.ActiveBrowser.Find.ById<RadTreeView>("RadTreeView1");
RadTreeNode node1 = tree.FindNodeByText("Drafts (2)");
node1.ShowContextMenu();
HtmlAnchor link = _Manager.ActiveBrowser.Find.ByXPath<HtmlAnchor>("/html/body/form/div/ul/li[4]/a");
link.MouseHover();
link.Click();
//MouseClick();
I have also tried this code with a HtmlSpan. The code runs fine highlights and even clicks on the item but then nothing happens.
Do you have any suggestions on how to accomplish this action?
Thanks,
Oli