Open Command with Store Value


#1

Looking at the documentation here: https://ui.vision/kantu/docs/selenium-ide/open there is the following note:
If the OPEN argument does not start with http:// or https:// (e. g. “OPEN | /contact”), then Kantu assumes this is a relative path it is appended to the existing URL.

However, it the Target is a stored value eg $(url) and that url includes the full domain, then it doubles up the domain e.g.
https://mydomain.com/https://mydomain.com/page/f?p=1234

So, if I’m storing a link on a page and trying to open it, then it will always assume it’s a relative path even if the stored values includes https://.

Regards


#2

I am not sure I see the problem. This macro works fine:

{
  "Name": "1store",
  "CreationDate": "2019-5-26",
  "Commands": [
    {
      "Command": "store",
      "Target": "https://forum.ui.vision/t/open-command-with-store-value/2673",
      "Value": "u"
    },
    {
      "Command": "open",
      "Target": "${u}",
      "Value": ""
    }
  ]
}

#3

Interesting. I think it’s because I have a base URL in my test.

As of Kantu for Chrome V0.9.0 we removed the BaseURL input box from the UI, but exported HTML tests still contain it, so they remain compatible to the classic Firefox IDE and other use cases