Get URL

Get url command is used to get a string representing the current URL that the browser is looking at and assigns the value to variable mentioned in parameter section.

Select GETURL command from the action drop down, leave Screen and Element key as blank and provide the variable name in parameter section as shown below:

After completing this step, test step will look as below:

Once url is stored in variable it can be accessed using ${x}.

Was this page helpful?