Finding company position in a table

Hello,
I have been putting together a project where a search is done on a comparison website, once the results come in from that search I want to be able to find out what position in the results table a specific company comes in at.
The column with the company name in are logos rather than text. I found that if I do a screen scraping and click on the company’s logo I get the following selector:

<webctrl aaname='CompanyName' parentid='resultsrow29' tag='IMG' />

So I can see in there the results row is 29 and that’s the number I want to grab and be able to place into a spreadsheet. However obviously depending on the search done the number 29 might be different so if I change the Selector to:

<webctrl aaname='CompanyName' parentid='resultsrow*' tag='IMG' />

Then it should find the logo wherever it is in the table. What I can’t work out is how to get the results row number when it finds it into a spreadsheet or even just into a variable or datatable for now.
I hope this makes sense, if you need more info then let me know.

Just bumping this as I realised the selectors I pasted weren’t appearing. I have now corrected that.

If anyone has any ideas that would be great. Thanks

You can use the Get attribute activity for getting the attribute value -

Specify the attribute name parentid

That’s exactly what I needed. Thank you for your help.

1 Like