hello everyone,
I wanted to extract the data from the web site https://www.servicesalapersonne.gouv.fr/ , by clicking on the button each “voir la fiche détaillée” and do the extraxtion. the problem is they have the same selector, do you have any idea how i can solve this problem?
@sarra.meziane
one option is to work with the feature of integrated anchoring the selector by using information from some other cells of same row. Finde some more info here:
Working with index would be alternate approach
It would be great if you can share the exact url with us, so we can do some further analysis on it and come up with some more specific suggestions. Thanks
Do you wanna click that button?
You could do extraction by clicking on mobile number. If selector contains mobile number in aaname and innertext,then that is done.
can you try with uiexplorer, there you may see lot of options.
open uiexplorer, click the button which u want to click, then it will list of many options in it.
there you can choose and highlight as well…
I have to browse the main line, after clicking on the button, because there I see idx = ‘4’ which increments, but I have a div = “divResult0” on the list I have several divResult, I tried div = “divResult *” this will not work
what sometimes works for me in these situations is to analyze the tree structure in UiExplorer and find the parent element where all entries are listed and then use a Find Children activity on that parent element. If you can, try to filter the elements by XML filter!
Then loop with For Each UiElement and you can take this UiElement variable (item from For Each iteration) and use it for UiAutomation instead of the selector.
Unfortunately I won’t find any more time this week to assist further on this issue, but I hope this helps you with your automation scenario.
Indicate “parent element” or container all your buttons are in in a Find Children activity - this could be the table column!
Save Output to a variable
Use For Each activity with type UiElement and your Output variable
Check if the current UiElement you are using in the For Each body is actually one of your desired buttons - you could use Get Attribute activity to check for a specific keyword (Check UiExplorer)!
If the current UiElement checks out use that (by default it would be the item from For Each activity) as an input for your Click activity
Click all the buttons in one neat workflow - profit!