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>(
var dUser = Find.ByAttributes<HtmlControl>(
"description=Login With a different account."
"text=Sign in as Different User"
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:
before clicking the sub menu.
(attached the sub menu html code taken in firebug)
Thanks in advance.