Desktop application error
Posted: Wed Aug 08, 2018 9:32 pm
I am trying to convert recording (Please see screenshot) into below mentioned code module
My Code launches the application but doesn't input text and throws error "The element does not support the required capability 'control'. ";void ITestModule.Run()
{
Host.Local.RunApplication(@"C:\org\application\NETComponents\random.exe");
Ranorex.Delay.Milliseconds(10000);
Ranorex.Control ctrl = Ranorex.Control.FromPath("/form[@controlname='Flash' or @domain='localhost']//flexobject[@movie='C:\\org\\web\\webapps\\abc.swf']");
Ranorex.Text t = ctrl.FindSingle("?/?/text[@id='userInput']");
t.TextValue.Equals("inputvalue");
}