Question

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***

Comments

Keep up to date on this post and subscribe to comments

Pega
October 21, 2019 - 5:48pm

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.

October 29, 2019 - 7:59am

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 

Pega
October 29, 2019 - 3:16pm

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.

November 4, 2019 - 7:39am
Response to tsasnett

Hello , i cant open your file ( incompatible ) 

Pega
November 4, 2019 - 8:12am
Response to EgorZ961

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".

November 4, 2019 - 10:06am
Response to tsasnett

Can you please make just a photos of project ( automation ) , maybe it can help me.

Pega
November 4, 2019 - 2:48pm

Here are some screenshots.

November 5, 2019 - 5:54am
Response to tsasnett

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.

Pega
November 5, 2019 - 8:17am
Response to EgorZ961

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.

November 5, 2019 - 8:27am
Response to tsasnett

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....

Pega
November 5, 2019 - 8:32am

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.

November 5, 2019 - 10:21am
Response to tsasnett

Doing like this can i show atleast one news in showdialog ? to see if it works ...

 

(it dont work hehe)

November 6, 2019 - 6:12am
Response to tsasnett

OKey , so im trying to get title but i have a error "The control Title is not matched."

November 6, 2019 - 6:33am
Response to tsasnett

Trying to get 5 titles of 5 news

November 6, 2019 - 10:00am
Response to tsasnett

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.

November 7, 2019 - 3:23am
Response to tsasnett

.

Pega
November 12, 2019 - 11:20am

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.