| || |
QTP - SAPGuiWindow, SAPGuiLabel Programmatic Descr
I am trying to code making a selection in a SAPGuiCheckBox in a SAPGuiWindow that is dynamic during each Run time. This checkbox needs to be associated with a corresponding SAPGuiLabel which is also dynamic (This happens to be on the Customer Line Item Display window in SAP).
I did an Object Spy on the Document No column (SAPGuiLabel) in SAP.
I selected the Run Time Object Properties radio button in the Object Spy
We need to capture the last parameter in the ID Property in the Run-time Object Properties - example /app/con/ses/wnd/usr/lb[121,14] - the 14 is what we need to capture.
Then we need to loop through all of the checkboxes (SAPGuiCheckBox) until we find one with the same ID Property - example /app/con/ses/wnd/usr/chk[1,14] - the 14 is what we need to compare.
Does this sound like it should work using Programmatic Descriptions? Has anyone automated selecting a checkbox like this in SAP?
Thanks for your help!
Re: QTP - SAPGuiWindow, SAPGuiLabel Programmatic Descr
You should be able to use Descriptive programming to manage these checkboxes. You already have the value to search for.