URL is always after :rollback? cut off

Hello everyone,

I would like to put together a URL with the path Katalon always cuts off everything after :rollback? e.g. stands. Does anyone have a solution?

For example, I have a URL with:

:rollback?Id=1234

My result URL is then:

:rollback

2 Likes

Build the full URL string in a test variable or script and pass it programmatically, bypassing UI-based URL input or Try URL-encoding the question mark (%3F), so the URL becomes :rollback%3FId=1234

1 Like

If @dineshh’s idea does not work, then just try to put a down slash in front of the question mark, like:

:rollback\?Id=1234

What this is supposed to do is “escape” the question mark so that it becomes just a question mark, and not some other purported character.

How does your code try to put together a URL with the path?

Please show your code to us here.

This string does not look to be a valid URL. Syntactically wrong.

Could you explain how you can call it a URL.

Use navigateToUrl After Authentication

If you’re authenticating first, the query string might get stripped. Instead:

Authenticate first (if needed)

Then use WebUI.navigateToUrl('https://yourdomain.com:rollback?Id=1234') as a separate step

This avoids the truncation during the authentication phase.

Encode the URL

Try URL-encoding the query string:

String encodedUrl = ‘https://yourdomain.com:rollback%3FId%3D1234’ WebUI.navigateToUrl(encodedUrl)

This can sometimes trick Katalon into preserving the full path.

I hope this will help and please let me know if this not works. :+1:

@lukas.nowicki Any of the solution resolved your issue?

1 Like

@lukas.nowicki If none of those options worked, can you please share your script?

1 Like