Requirement:
I am trying on automate a workflow on AWS, where I want UI path to first click on Add dimension button and then fill the values in rows generated. For example,
Input :
> Blockquote
1. Name : Starter, Price : 5 [Description and API name get autofilled]
2. Name : Basic, Price : 2
3. Name : Advance, Price 3
Each row has two fields that I need to fill, First field is a dynamic dropdown where values gets decreased once they get choose in previous rows and Second field is a price field, where we can type a integer value.
Problem :
- Firstly I am not able to uniquely identify each row, as they are being generated by clicking on
Add Dimension
button. I tried UI path to select each dropdown and found out that their ids are randomly generated so I am not sure if there exist any way by which we can configure UI path to uniquely identify the last added row and fill the values in there.
UI element of each row’s dropdown after clicking Add Dimension
button 4 times
<webctrl tag='BUTTON' id='first-control-id-96-1677491554456-3372' type='button' class='awsui_button-trigger_18eso_1qkof_97 awsui_has-caret_18eso_1qkof_137' aaname='' />
<webctrl tag='BUTTON' id='first-control-id-98-1677491554456-3987' type='button' class='awsui_button-trigger_18eso_1qkof_97 awsui_has-caret_18eso_1qkof_137' aaname='' />
<webctrl tag='BUTTON' id='first-control-id-100-1677491554456-3561' type='button' class='awsui_button-trigger_18eso_1qkof_97 awsui_has-caret_18eso_1qkof_137' aaname='' />
<webctrl tag='BUTTON' id='first-control-id-102-1677491554457-2713' type='button' class='awsui_button-trigger_18eso_1qkof_97 awsui_has-caret_18eso_1qkof_137' aaname='' />
- Second, In a case where there is a single row [I did not click on Add dimension button], I tried selecting a value from the dropdown button using
-
Select Item Activity : It said Target is not a valid UI Element for the select Item
-
Click Activity, where I used this below mentioned configuration and passed a Name variable to select the value from the dropdown :
<webctrl tag='UL' aria-role='listbox' type='' class='awsui_options-list_19gcf_38sbc_93' aaname='{{Name}}’
It did not work and end up selecting random value from the dropdown.
In essence, I’m looking for a way to configure the UI path to uniquely identify Price field and Name field[dropdown] uniquely for each row and can also select the correct value from each dropdown.
Help Appreciated!!