How to Past token (link that changes every time) to URL?


#1

Hi. how I can past token (link that changes every time) to URL ? result = WebUI.getText(findTestObject(‘Object Repository/RolesObjects/OrgRolesObjects/InviteRolesPage/InviteLink’))WebUI.openBrowser(’’)WebUI.navigateToUrl(result)I need a help please. Its not working…


#2

Hi,

extract it to variable from the previous request response and use in url
def extractedValue = token extracted from response
der url = "https://here.comes.token"+extractedValue+".rest.of.ulr.parameters"

is this what you are looking for?

#3

Hi guys.

I suggest you guys preformat the text to enhance readability. Taking advantage of our editor will produce healthy eyes :grin:

image


#4

your eyes are happy :slight_smile:


#5

When things aren’t working, it’s much more helpful to us if you can describe what is actually happening. Are you getting an error? Is the test failing silently? These are critically important for us to help you resolve the issue.