How to handle dynamic URLs

Hello everyone. I have an issue with the activity of using an application/browser, as my target URL contains a dynamic part. I used the wildcard ‘*’ to try to solve the problem, but apparently, either I am using it incorrectly, or it is not meant for what I thought.

As you can see in the image, the URL is:

where everything that comes after mainMenu.do is dynamic.
I put the following in the selector:
https://app1.comarb.gob.ar/siferewebconsultas/mainMenu.do*”
but it has not worked.
What suggestions do you have?

Hi @Matias_Clemente.Arg

Use Open Browser with a Variable URL:

store the base URL in a variable and concatenate the dynamic part:

Like below, pls change accordingly,

baseUrl = “https://app1.comarb.gob.ar/siferewebconsultas/

fullUrl = baseUrl + dynamicPart

Then, pass fullUrl to the Open Browser activity.

If you found helpful mark as a solution.
Happy Automation

1 Like

@Matias_Clemente.Arg

When you say it did not work..is it not able to identify the window? Or you are unable to indicate?

Cheers

1 Like

I don’t think this would create a problem

may I know what is the error you are getting?. Kindly follow below steps

Pre requisite: Load the page manually and wait till it is fully loaded

Step 1: Drag and drop the activity Use Application/Browser and indicate application. Continue with whatever URL it captured

Step 2: Add steps below in the Do Sequence

Run the code. Close browser and try to run again. if any error you are getting - Kindly share the screenshot

1 Like

@prashant1603765 @sharazkm32 @Anil_G, I apologize for wasting your time. I wasn’t sure what I was doing wrong, but it works now just as I pasted it above. The issue, I suspect, was that there was an intermediate step that appeared exactly the same, but without the dynamic part. This caused me to work outside of the session, so the controls were not loading correctly.

Thanks

No problem. Glad that your issue is solved :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.