Hello everyone!
Please help me solve a big problem for me
I’m making a website parser. And there is always a different number of values in one field. Sometimes 3 lines and sometimes 10. I’m making a dynamic selector (I need exactly this option). How can a robot quickly realize that it has taken all the values? For example, selector selects the last, fifth value, and then realizes that it is the last and stops.
I had a couple of ideas, but the robot then does unnecessary actions and spends more time
For example, I need take some information from product cards.
On the first card in the section “About this item” there are 5 lines (highlighted with a bulleted list). On the second card - 6 lines.
I know that I can take the entire “About this item” section. But sometimes I need to use a dynamic selector.
How can the robot understand that it is necessary to take 5 lines from the first page, each time moving the selector to the next line, but take 6 from the second page?
It should work using the get text or scrape and taking the entire selector on the text container, did you try scraping the entire container? It should retrieve all the text, no matters how much lines being here
Yes, I know that I can take the whole container. But sometimes I just need to use selector on line and then need to move this selector to the next line (for my tasks) and I don’t understand how to set the end of this cycle for the selector.
@appleikmek There is something called aaname(name of the element on what you want to perform an action) in the selector . Once you get the selector for an element, open it in Ui Explorer and check an attribute called aaname
Ex: In the first card if you want to perform something on the last point then , Durable Construction: The Kraken etc… will be the aaname
If you find this attribute in the selector then you can pass the aaname through variable (dynamic selector). So that it perform the actions on the specific element. check the below doc on how to pass the variables in selector