Question
Accenture
ES
Last activity: 12 Nov 2019 11:20 EST
loop multiple links
Hi,
I'm making a robot ( Pega Robotics ) , which need to enter to site , search a "especial word" and take 5 first news about this word , so
how can i make that my robot take those 5 news automatic , i mean with forloop he can take 5 news ( with his title, text and date)
Can he got this elements automatic and not with drag and drop
***Edited by Moderator: Lochan to update platform capability tags***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
US
You can certainly configure the match rules to your control such that it matches all of your results. In order to have this be contained in a single control (so that you can iterate through a list), you enable the UseKeys property of a given control. This allows you to match against all instances of that control. In your automation, you can call GetClones() on a given control where you have enabled UseKeys and pass that list into a ListLoop to iterate through. The item coming out of the ListLoop is one instance of that control.
Accenture
ES
Cant do it without some help videos or something hehe,
i just need to do a bot , if we put a parameter in pega like "Appian" , my robot go to page and search 5 news ( with title,context,date,url) , but we put in pega "Pega" my robot will take 5 news about pega
Pegasystems Inc.
US
Here's an example. You can play with it to suit your needs. You'll notice there's no order on the clone collection, so if you need then in order, you'll need to find something about the control that indicates its order. I didn't try to look into this for this example as it would differ for your instance.
Accenture
ES
Hello , i cant open your file ( incompatible )
Pegasystems Inc.
US
You might have an older version of Pega Robotics. I do not have a way to downgrade it. You can use the latest version on 19.1 to view and test the solution and then you can re-create it in your older version. If you are using Studio and not the Plugin, you'll also need to change the extension of the file ending in ".sln" to ".ossln".
Accenture
ES
Can you please make just a photos of project ( automation ) , maybe it can help me.
Pegasystems Inc.
US
Here are some screenshots.
Accenture
ES
Thx for the info , but i cant complete the robot.
i think the problem is in the website i work with , seems have bad html so i cant select what i need.
I need to do a robot who will go to the "itworld.com" search "Appian" and select 5 first news ( go in to news get tittle,date,url,context of all 5 news) , and if i change the parameter of search ( for example "Robotics ) the robot should do the same.
Pegasystems Inc.
US
Since this is a public site, why don't you attach your solution with the work you've already done and perhaps I can offer suggestions.
Accenture
ES
I deleted the other robot i did , because it was all manually , so im starting the new one.
i only need to undertsand the part where i need to select 5 news and get ( title,context,date,url)
only need this part , but i dont get how to work with proxy and how to jump from 1 news to seconde....
Pegasystems Inc.
US
I just took a look at the site and it looks like through using select element, you can grab the DIV with the class of "post-cont" as your container (this is what you'd enable UseKeys for) and set it to a container. Then you can interrogate the other elements you need beneath it.
Accenture
ES
Doing like this can i show atleast one news in showdialog ? to see if it works ...
(it dont work hehe)
Accenture
ES
OKey , so im trying to get title but i have a error "The control Title is not matched."
Accenture
ES
Trying to get 5 titles of 5 news
Accenture
ES
So, for now i did this , it shows 5 news but not the most recent ( maybe because the div are diferent ), and i need to know how to take info from each news ( tittle,url,date,context).
appreciate it if you can help me with this.
Accenture
ES
.
Pegasystems Inc.
US
You would use the Select Element option on the interrogation form to add items beneath your "Div1" object. You could grab the items that contain the title, (you already have that), the date, etc...
For the "A" tag (the hyperlink), I would use a text match rule and use a really generic RegEx since it is the only A tag in the section. Just use dot asterisk for the text and RegEx as the Mode and it will match everything.