Place holder in strict selector at href attribute

Dear all,

I have a table in my browser that looks like this:
table

“Confirm” and “Check” is linked, but all of them have different links and will change, all in all 4 links, starting with /Secrue/Core/ and than stuff like this:
/Secrue/Core/29jf934ic4
/Secrue/Core/120k2eokcx

I would like to click on the first “Confirm” in line 3. My click has a strict selector that looks like this:

<html app='firefox.exe' title='Operations Log' />
<webctrl class='olGrid' parentid='aspnetForm' tag='TABLE' />
<webctrl tag='A' aaname='Confirm' innertext='Confirm' tableCol='1' idx='1' />

This selector clicks on the first “CONFIRM”. I could edit the strict selector this way to find the first confirm:

<html app='firefox.exe' title='Operations Log' />
<webctrl class='olGrid' parentid='aspnetForm' tag='TABLE' />
<webctrl tag='A' aaname='Confirm' innertext='Confirm' href='/Secrue/Core/29jf934ic4' tableCol='1' idx='1' />

The question is, how to write the href attribute to find the first confirm all the time. I tried something like this but it did not work:

href='/Secrue/Core/~'
href='/Secrue/Core/{}'

Thank you for your help.

@on_and_on

The first selector you have psted above should be working to click on first confirm always…

You dont need href

Cheers

Hi @on_and_on

Try changing the idx=‘3’ to click on 3rd confirm.

Hope this helps :slight_smile:

Are they in separate table rows? If so, just remove the idx=‘1’ and replace it with tableRow=‘3’

Hi @Anil_G, unfortunately UiPath is trying to click the Confirm in line one, but there is no link and it is not clickable and I get a error. The only one difference between the confirm in line 1 and line 3 is the href attribute.

Dear @AJ_Ask, unfortunately it not work. Any other ideas?

Dear @postwick, yes, every “confirm” is in separate rows, but the rows are updated every 60sek and will change. Any other idea? The place holder in the selector would be the best option.

@on_and_on

You can use isx to click as you need…and if you wnat to click confirm with underline then mostly class would be different

Cheers

Dear @Anil_G, all of this attributes of “Confirm” in line 1 and 3 are the same, instead of the href which is there in line 3 but does not exist in line 1:



Where do I find e.g. the underline class or more classes?

And what exactly is isx? I thought it is clicking on specific coordinates which would not work because the lines changes every 60sek.

@on_and_on

I meant idx which is the index on which you want to click

and if the href is empty for the first few then you can use a regex in href to check if a value is present or not instead of empty or space

<webctrl tag='A' href = '\S+' matching:href='regex' />

this selector will go for first non empty href

cheers

Hi @Anil_G, regex seems to be helpful. It seems to be easy so I will learn it and use it in the future.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.