Hi,
I am trying to automate an sharepoint web application using telerik testing framework. I was succesful in most of the identificcation and user actions except below problem.
The site has Menu > Sub menu where the 'sign in as different user' option is available.
When the page initially loads only the menu item will be displayed, only after clicking this menu, the sub menu will be dislayed in the page.
(I am sure this is not ajax)
I am able to identify the sub menu (by ActiveBrowser.RefreshDomTree()) after clicking the menu but when trying to click on the sub menu it fails.
The IsEnabled returns "true" and IsVisible returns "false".
Even after successfully identifying the sub menu control (dUser), any mouse actions are not working on the control.
I also tried:
I am trying to automate an sharepoint web application using telerik testing framework. I was succesful in most of the identificcation and user actions except below problem.
The site has Menu > Sub menu where the 'sign in as different user' option is available.
When the page initially loads only the menu item will be displayed, only after clicking this menu, the sub menu will be dislayed in the page.
(I am sure this is not ajax)
I am able to identify the sub menu (by ActiveBrowser.RefreshDomTree()) after clicking the menu but when trying to click on the sub menu it fails.
HtmlAnchor SLnk = Find.ById<HtmlAnchor>(
"zz5_Menu"
);
SLnk.MouseHover(5,5);
SLnk.MouseClick(MouseClickType.LeftClick);
ActiveBrowser.RefreshDomTree();
var dUser = Find.ByAttributes<HtmlControl>(
"description=Login With a different account."
,
"text=Sign in as Different User"
);
Console.WriteLine(dUser.IsEnabled +
" "
+ dUser.IsVisible());
dUser.MouseClick();
The IsEnabled returns "true" and IsVisible returns "false".
Even after successfully identifying the sub menu control (dUser), any mouse actions are not working on the control.
I also tried:
dUser.MouseHover();
dUser.ScrollToVisible();
before clicking the sub menu.
(attached the sub menu html code taken in firebug)
Please help.
Thanks in advance.