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.