Have same id, class, name inbuts and i want to add text from a csv file

csv
form-filling
selenium-ide

#1

hi amazing team,

please i have a problem

i have inputs in page have the same id, class and name and i dont know how can i make looping for this inputs

<input name="price-input" id="62809790533_499020730243_price_field-input" value="29.94" class="input input-min-width" style="padding-left: 56px; outline: rgba(0, 0, 255, 0.3) solid 1px;">

2132113123

this is what i used but i dont know what to do else and i searched for 2 days to find soloution but no result found so please help me because i need it so much

{

“Name”: “# new test”,
“CreationDate”: “2019-3-2”,
“Commands”: [
{
“Command”: “csvRead”,
“Target”: “prices.csv”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “name=price-input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “name=price-input”,
“Value”: “${!COL1}”
}
]
}

thanks


#2

please note: when i click looping button it work very well for the csv data but the looping change in the first input only

and please i need help from anyone to complete this code

thanks again


#3

A quick solution is to use XType with ${KEY_TAB} to jump to the next input box. Note that for the first input box you need to use XClick to set the focus in the box.

tab1

{
  "Name": "tab1",
  "CreationDate": "2019-3-4",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://demos.devexpress.com/ASPxNavigationAndLayoutDemos/FormLayout/Columns.aspx",
      "Value": ""
    },
    {
      "Command": "XClick",
      "Target": "id=ContentHolder_formLayout_formLayout_E1_I",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "111",
      "Value": "popop"
    },
    {
      "Command": "XType",
      "Target": "${KEY_TAB}222",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_TAB}333",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_TAB}tab works!",
      "Value": ""
    }
  ]
}