Click an object using FullName property
Hello,
I have a panel with wndClass : WindowsForms10.Window.8.app.0.378734a_r49_ad1
It has two items in its list namely
Auto1
address : Sys.Process("FileMaintenance").WinFormsObject("frmSuperbill").WinFormsObject("panelMain").WinFormsObject("ctrlHeading-331").WinFormsObject("panelMain").WinFormsObject("lblDescription")
and
Auto2
address : Sys.Process("FileMaintenance").WinFormsObject("frmSuperbill").WinFormsObject("panelMain").WinFormsObject("ctrlHeading-338").WinFormsObject("panelMain").WinFormsObject("lblDescription")
The number in red keeps changing.
I need to click on Auto 2, Text recognition did not work.
I used the following logic:
function ClickAuto()
{
a= Sys.Process("FileMaintenance").WinFormsObject("frmSuperbill").WinFormsObject("panelMain").WinFormsObject("ctrlHeading-*").WinFormsObject("panelMain").WinFormsObject("lblDescription")
if(a.Text == "Auto2")
b= a.FullName //b holds the FullName of the object with name Auto2
b.Click() //Click is not supported
}
HOW CAN I PERFORM CLICK OPERATION by using the FULL NAME property?
Thanks in advance,
Nimeshika