I am trying some windows application automation using flaUi automation. here I tried to click on menu in an application which supposed to load form before perform any further action.
Code:
var menu = mainwindow.Automation.GetDesktop().FindFirstDescendant(cf.Menu()).AsMenuItem();
menu.Items["Report"].Items["CR Reports"].Items["Bk Report"].Invoke();
It throws error on second line of code.
This works fine on one system and same code throwing an:
unhandled exception of type system.componentmodel.Win32Exception occurred in flaui.core.dll exception
on another.
Any help would be greatly appreciated!!