Support Portal

for ProcessRobot and WinAutomation

Start a new topic
Answered

click webpage loop

hello,


need some help,


I'm trying to fillout a form to create new customer multiple times, the issue im having problem is the css selectors, can't find the right combination to make the css selector dynamic, ordinal options are not checked and if I check it  for

dynamic selectors, i will have an error, element cant be found.


Any suggestion will be much appreciated. thanks!


Best Answer

Hello,


Without having access to the actual form, we can only speculate as to how the selector should be modified.

Having said that, lets use as an example the following form:


HTML Form


By capturing the control for the "First name" field, the generated selector is:


iframe[id="iframeResult"] > html > body > form > input[name="firstname"][type="text"]


We can further modify it to the following:


iframe[id="iframeResult"] > html > body > form > input:eq(%LoopIndex%)


while using a Loop to increase the %LoopIndex%. This way we can populate all the available fields of the form. 


1 Comment

ADMIN
Answer

Hello,


Without having access to the actual form, we can only speculate as to how the selector should be modified.

Having said that, lets use as an example the following form:


HTML Form


By capturing the control for the "First name" field, the generated selector is:


iframe[id="iframeResult"] > html > body > form > input[name="firstname"][type="text"]


We can further modify it to the following:


iframe[id="iframeResult"] > html > body > form > input:eq(%LoopIndex%)


while using a Loop to increase the %LoopIndex%. This way we can populate all the available fields of the form. 


Login or Signup to post a comment