sankar_k
11 years agoOccasional Contributor
Finding a children name using ClrClass and Name properties
Hi There
I am able to print values of ClrClass and name after calling FindAllChildren method as follows. Every time the below code is executed, the two values are printed without any problems.
Dim logCntrl, PropArray, ValuesArray, calc ,PropArray1, ValuesArray1, calc1 ,PropArray2, ValuesArray2, calc2
Set logCntrl = Sys.Process("Client").WinFormsObject("MainFrame").WinFormsObject("LoginBrowserControl").WinFormsObject("loginParameters1")
PropArray = Array("WndClass", "MappedName")
ValuesArray = Array("WindowsForms10.Window.8.app.0.3ce0bb8_r11_ad1", "Aliases.Client.MainFrame.LoginBrowserControl.loginParameters1.loginGroupWrapper.txtUserId")
However, I am trying to findallchildren using ClrClass and name which was printed without any problem using the previous code, it is not able find out the objects. Could you please help me how to debug or is there anything to be done in a different way here?
For your information, I am trying to automate a .net based application using infragistics contols
Thanks
I am able to print values of ClrClass and name after calling FindAllChildren method as follows. Every time the below code is executed, the two values are printed without any problems.
Dim logCntrl, PropArray, ValuesArray, calc ,PropArray1, ValuesArray1, calc1 ,PropArray2, ValuesArray2, calc2
Set logCntrl = Sys.Process("Client").WinFormsObject("MainFrame").WinFormsObject("LoginBrowserControl").WinFormsObject("loginParameters1")
PropArray = Array("WndClass", "MappedName")
ValuesArray = Array("WindowsForms10.Window.8.app.0.3ce0bb8_r11_ad1", "Aliases.Client.MainFrame.LoginBrowserControl.loginParameters1.loginGroupWrapper.txtUserId")
However, I am trying to findallchildren using ClrClass and name which was printed without any problem using the previous code, it is not able find out the objects. Could you please help me how to debug or is there anything to be done in a different way here?
For your information, I am trying to automate a .net based application using infragistics contols
Thanks