Having issue with Navigating to URL

https://de.indeed.com/jobs?q=Java and python developer&l=Berlin

this link is working fine but when i use it as a URL in open browser activity it is opening 4 separate chrome tabs i.e for Java then and and then python and so on

Hi @Sami_Rajput

Are you using modern or classic experience?

Hi @Sami_Rajput

When you use the URL in the Open Browser activity, it opens multiple tabs because each space character in the URL is treated as a separate parameter. To avoid this issue, you can encode the URL before passing it to the Open Browser activity.

Here’s an example of how you can encode the URL using the HttpUtility.UrlEncode method in UiPath:

→ Add the System.Web namespace to your workflow by importing it at the beginning of your file:

Imports System.Web

→ Assign the encoded URL to a variable before using it in the Open Browser activity:

Dim encodedUrl As String = HttpUtility.UrlEncode("https://de.indeed.com/jobs?q=Java and python developer&l=Berlin")

→ Use the encoded URL in the Open Browser activity:

URL: encodedUrl

Hope this helps,
Best Regards.

1 Like

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