cancel
Showing results for 
Search instead for 
Did you mean: 

Navigating to URLs in a collection

JeromeRajan
Level 3
I have a collection that is basically an array of URLs. How do I navigate to each URL in a loop? I would think that the NAVIGATE stage is the answer to the question but I'm not sure how to achieve this.
9 REPLIES 9

Anonymous
Not applicable
Yes, you can do it using the navigate stage but make use of the root element which is actually the browser/site to make it work. Refer to the image below.  

JeromeRajan
Level 3
Hi rlizardo, Thanks for the response. I do not see an image in your response. Can you please re-upload it? 

John__Carter
Staff
Staff
Drag the top (root) element from the model into a navigate stage, then you'll see the navigate action that takes a URL input. make sure to use a Wait stage after each navigate that waits for the URL to load - don't just execute all the navigates in a continuous loop.

JeromeRajan
Level 3
Thank you, John. When I try using the Navigate Action, it always tries to tag along with the base URL in application modeler. the URL in the modeler is www.abc.com and the link I want to navigate to is www.xyz.com, what are my options?

John__Carter
Staff
Staff
Try putting in the full URL, eg https://www.amazon.co.uk

JeromeRajan
Level 3
I did. I added the http:// prefix but the NAVIGATE action still appends the URL to the one in the application model's root. Not sure if I'm missing something else

John__Carter
Staff
Staff
Hi Jerome - I don't think you are missing anything, and it's got wondering if this is a bug because I don't remember earlier versions of BP did not do this appending thing. I'd recommend raising a ticket with Support to see what they say (if I do it I'll only have o relay questions between you and them and it will slow things down). But even if it is a bug, it's uncommon to want to navigate to a different URL in the same object, usually you use separate objects. I know this doesn't solve your problem, but it's just to add some perspective.

JeromeRajan
Level 3
Thank you for your inputs, John. Appreciated

PSSupport
Staff
Staff
Hi Jerome - the support team tell me this is the way Navigate has always worked, and that the URL input will be appended to the current address unless it starts with http, in which case it will replace the current address. I've asked them to make the Help clearer on this. I know this doesn't help and goes against what you have observed but this is the response I got from them. If you are convinced Navigate is not behaving properly then I'd recommend raising a new ticket with them, perhaps including some screenshots. Sorry I can't be of more help.