Good day,
After having spent a few hours on various tutorials, I have made some progress, but still have questions.
Dynamic_Selector_Increment_Row.xaml (28.8 KB)
Forum_spreadsheet.xlsx (10.1 KB)
- I am not sure if the “click” needs to be before the assign activity, or after.
- So far, I am getting the following error:
Get Text: Could not find the UI element corresponding to this selector:
[1] <html app='firefox.exe' title='***** !!! Application - Financial Model'/>
[2] <webctrl id='tblEquipment' tableRow='2' tag='TABLE'/>
[3] <webctrl id='update_productId' tableCol='6' tableRow='0' tag='INPUT'/>
Search failed at selector tag:
[3] <webctrl id='update_productId' tableCol='6' tableRow='0' tag='INPUT'/>
The closest matches found are:
[75%] <webctrl id='update_productId' tableCol='6' tableRow='3' tag='INPUT'/>
[57%] <webctrl id='update_margin' tableCol='16' tableRow='3' tag='INPUT'/>
[41%] <webctrl id='update_discription' tableCol='7' tableRow='3' tag='INPUT'/>
[41%] <webctrl id='update_markup' tableCol='14' tableRow='3' tag='INPUT'/>
[40%] <webctrl id='update_upp' tableCol='8' tableRow='3' tag='INPUT'/>
[40%] <webctrl id='update_custt_disc' tableCol='15' tableRow='3' tag='INPUT'/>
[40%] <webctrl id='update_un_per_site' tableCol='11' tableRow='3' tag='INPUT'/>
[40%] <webctrl id='update_*****_disc' tableCol='10' tableRow='3' tag='INPUT'/>
[39%] <webctrl id='update_sites' tableCol='12' tableRow='3' tag='INPUT'/>
[39%] <webctrl id='update_otherSupplier' tableCol='5' tableRow='3' tag='INPUT'/>
Please note: Used “*” and “!” for security purposes. Do not want to disclose company name.
Here are screenshots that will hopefully help:
Again, here is the UIElement I am targeting:
And here is the UI Explorer selector information:
So, in the “assign” activity inside of the “for each excel row”,
I had taken the selector code which was initially:
"<html app='firefox.exe' title='***** !!! Application - Financial Model' /><webctrl id='tblEquipment' tableRow='2' tag='TABLE' /><webctrl id='update_productId' tableRow='3' tag='INPUT'/>"
To:
"<html app='firefox.exe' title='***** !!! Application - Financial Model' /><webctrl id='tblEquipment' tableRow='2' tag='TABLE' /><webctrl id='update_productId' tableRow='"+Counter.ToString+"' tag='INPUT'/>"
Note I had replaced “tableRow = ‘3’” to "tableRow= ’ “+Counter.ToString+” ’
For reference, I had mainly used this tutorial:
I really appreciate the help and guidance on this one! If I can figure out how to master this area of dynamic selectors, I feel like I will be on my way to mastering RPA with UiPath.
If anyone needs any additional information from the UI Explorer or anything else, I will be more than happy to provide.
Thank you again!