Bot is not clicking on next row in a dynamic table

I have a dynamic webpage where we need to input some keywords one by one and number of tenders gets displayed in a table format each tender name is different and the name itself is clickable. Issue is the bot is clicking only on indicated tender name not the rest of names. I tried using dynamic selector and also used anchor(title). I am currently using find children with the same filter and if and for each loop. Suppose the table has 3 rows so the bot is clicking on same element 3 times.
can someone help me …

Try to use for each ui element activity from Modern Design

2 Likes

@Aishwarya_Ambre,

Use For Each Ui Element activity for this. Inside it use Click activity and pass the currentElement as an Input element to the Click activity like this:

3 Likes

I tried this but the bot is still failing at 2nd tender click

@Aishwarya_Ambre,

Ok what happens when bot clicks on the first ui element? is it changing something on the page?

When the bot clicks on first ui element its working fine and the rest of activities are doing fine . Issue occurs when the bot tries to click on 2nd tender.
The activities are placed like following:
element exists(target)
if target=true
then
find children(out_links)
for each ui element (currentElement)
do
get url
click (currentElement)
get text+type into (captcha)
click submit
click on tender
click download
captcha2
click download
go to url
for each ends

@Aishwarya_Ambre

May I know what the go to url does?

is it redirecting to initial page? if so may be it is failing to get the selector same way again…can you check the for each ui element selector and see if it is changing if page is refreshed

cheers

Hi Aishwarya, See if you can add an aaname attribute where the aaname is the tender name.

Hey Maggi,
Each tender name is different.

i want to click on each tender complete the downloading process and then come back to tenders page and click on next tender that’s why i used get url and go to url
well maybe i can’t see it though

@Aishwarya_Ambre

Then its better to use idx for clicks

So indicate the button in ui explorer and mostly it would contain a tablerow property if its a table then can use tablerow as input and change it for each itwration

If not table then idx can help you

The selector would be something like this

<webctrl tag='button' tablerow='1' tablecol='5' innertext='abc' />

Tablerow would change for each row

Cheers

Update
i tried adding find children/ Find element after the activity go to url before the for loop ends now getting following error:
For Each UI Element ‘For Each UI Element’: Source data was modified, for each operation can not continue.
This is likely due to changes in the target application while the For Each UI Element activity executes.

1 Like