I have an issue and I would appreciate a lot some help
I would like to ask the robot to double click on each result of web search . When I perform a search, all results are displayed by tables. So, the first row of the results is a table, the second row of the result is a table and so onâŚThe below printscreen shows 11 tables
The selector of first col of the first row is:
âwebctrl aaname=âOPC (Partie I)â parentid=âResultResearchGridView-record-469â tag=âDIVâ />â
The selector for the first col of the second row is:
âwebctrl aaname=âBâ parentid=âResultResearchGridView-record-470â tag=âDIVâ />â
The problem for me is that if I do another search, the first ID wonât be 469 anymore but maybe 450âŚ
I used UiExplorer but didânt succeed to fix the issue.
So, I donât know how to tell my bot to double click on each results.
I have inspected the website Under Google Chrome and I have noticed that there was a âdata-recordidâ for each table but I donât know how to add it in my selector as Iâm not an expert in web.
You can use data scraping to read all the rows of the table and also you can retrieve the URLs that the links in the rows would point to as well. That way you donât have to bother about the selectors for each row.
No @LaurentO. Not your fault. This would be because the URL would not have been defined in the href attribute (specific to links) in your application. Just noticed from your previous post that all your rows are DIV elements. You can use the below workaround.
You can just scrape the data with the Type and Name and store it in a datatable.
Loop through the datatable using For Each Row activity and do the below step
Use Click activity with the below dynamic selector to double click on the row "<webctrl aaname='" + row.item("Type").ToString + "' parentid='ResultResearchGridView-record*' tag='DIV' >"
Make sure you change the ClickType property to CLICK_DOUBLE