selectWindow TAB=OPEN allowed from blank tab or internal browser page

Hi @admin

In the past the Open command for firefox didn’t work work from a non web page (example about:config or a blank tab) after some updates open command now working on blank page or non web page.

I start macro always in new tab (to not override old tab) but if I try to start macro in new tab starting from non web page it show error and do not work.

I suggest to add the same propriety of open command in selectWindow TAB=OPEN to allow to start command from a non web page to (actually open command can open an url from a non web page but selectWindow TAB=OPEN can NOT open a url from a non web page).

The same thing is possible to add in selectWindow TAB=OPEN ?

Thanks

Good point, I opened a ticket for it (762).

Test macro:

{
  "Name": "sw1",
  "CreationDate": "2020-6-30",
  "Commands": [
    {
      "Command": "selectWindow",
      "Target": "TAB=OPEN",
      "Value": "https://ui.vision/"
    },
    {
      "Command": "assertElementPresent",
      "Target": "xpath=//*[@id=\"content\"]/div[2]/div/p",
      "Value": "",
      "Targets": [
        "xpath=//*[@id=\"content\"]/div[2]/div/p",
        "xpath=//div[2]/div/p",
        "css=#content > div:nth-child(2) > div > p"
      ]
    }
  ]
}
1 Like

Thanks admin :slight_smile: