hb7of9
February 7, 2019, 9:29am
1
““A similar command from the old Firefox is “storeLocation”. It is useful to store current selected window’s URL. This command can be recreated in the Kantu IDE by using store | ${!URL} | myurl or simply using the ${!URL} built-in variable directly in your software test cases.””
Trying to replicate the above:
get the error : " [error]
Internal variable “!URL” not supported"
but I am using the code from the example pages
{
"Command": "storeEval",
"Target": "${!URL}",
"Value": "website address"
}
]
}
admin
February 7, 2019, 11:44am
2
Where did you find this example code? It is wrong
Correct:
macro code:
{
"Command": "store",
"Target": "${!URL}",
"Value": "w1"
},
{
"Command": "storeEval",
"Target": "a = \"${!URL}\"; a",
"Value": "w2"
},
hb7of9
February 7, 2019, 1:52pm
3
Thanks!
I tried this one >> Option 1: store | ${!URL} | w1
(recommended)
Here is my JSON:
" {
“Command”: “store”,
“Target”: “${!URL}”,
“Value”: “w1”
}
]
}"
Still does not work >> [error] Internal variable “!URL” not supported
I copied the code, so its exact as far as I can see.
upa
April 22, 2022, 11:02pm
4
Based on this answer, UIvision has to “touch” the browser first before it can extract the URL.
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 w…