Error: Internal variable "!URL" not supported

Hello,
I just found this nice tool few days ago and I am testing it. I had some trouble with the internal variable “!URL”. In some test cases it was working, in other not.
So my findings are, when I use “!URL” at the beginning before I used another command to access the side then it is not working and I get the message “Internal variable “!URL” not supported”.
But if I use for example storeTitle first and after that read the internal variable “!URL” then it is working fine.

Here an example with 2 commands. One time it is working, one time not. Depends on what command is used first.

This one gets the error:

{
  "Name": "Test3",
  "CreationDate": "2021-7-8",
  "Commands": [
    {
      "Command": "echo",
      "Target": "${!URL}",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "storeTitle",
      "Target": "",
      "Value": "myTitle",
      "Description": ""
    }
  ]
}

This one is working well.

{
  "Name": "Test3",
  "CreationDate": "2021-7-8",
  "Commands": [
    {
      "Command": "storeTitle",
      "Target": "",
      "Value": "myTitle",
      "Description": ""
    },
    {
      "Command": "echo",
      "Target": "${!URL}",
      "Value": "",
      "Description": ""
    }
  ]
}

This is a really good question. Indeed, !URL is empty (undefined) if used before the OPEN or another Selenium IDE web browser command (like storeTitle). So UI Vision must first have “touched” the website in any way, then the !URL variable is filled correctly.

1 Like