I need to type the next item in a read range got from a for each as the second entry to a text area in a website. But once I made the type into dynamic adding “+counter.ToString+” it doesn’t validate and it also stops the RPA when it reaches type into activity.
Can I make Type Into dynamic? Please help me to solve this.
Why did you add counter.toString to parentclass name? Is the parentclass of the second textbox something like …input-group1 then the third one …input-group2 ?
this will produce a better selector. e.g. account field row 1 =
account field row 2 =
Now you can just replace the idx value with counter.toString like this "<wnd app='chrome.exe' cls='Chrome_WidgetWin_1' title='MYOB - Invoice - Google Chrome' /><ctrl name='MYOB - Invoice' role='document' /><ctrl name='Account' role='editable text' idx='"+counter.toString+"' />"
Note: the above works for all the fields except the “Description” field because the idx for description field row 1 = 14 for some reason…, for descrption field you might need a custom counter e.g row 1 = 14, row 2 = 17 and so on…
description field row 1 =
This is great… Can you explain me further how to create a custom counter? Because now it straightaway go to “Account” field without typing the description?
Another thing to know, what is this “idx” exactly means?
And for some reason “ctrl name” also does not appear.