Open (URL) - Selenium IDE command

open

Meet Open | url - the most used command in the selenium IDE software testing tool. The "Open" command opens the URL in the current selected browser tab. The open command takes a full URL as input (recommended) or a path relative to the baseurl (outdated). In Ui.Vision RPA and our Selenium IDE++ web automation engine 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. To do so, the Ui.Vision RPA IDE separates the URL of the open command into base url and relative path upon export.

The "openWindow" command is not supported by the Ui.Vision RPA Selenium IDE. You can achieve the same result with the more flexibe selectWindow | TAB=OPEN | https://newurl.com command.

Note: If the OPEN argument does not start with http:// or https:// (e. g. "OPEN | /contact"), then Ui.Vision RPA assumes this is a relative path it is appended to the existing URL.

openBrowser (deprecated)

Ui.Vision also has openBrowser | url - it is almost the same as Open | url , but opens a new browser window. By contrast, the regular OPEN command loads the URL in the same tab as the macro is currently playing. OpenBrowser is deprecated and replaced by the command line interface. So openBrowser should not be used in new macros. If you need to open new browser windows e. g. for web test automation, the much better solution is to start a completely new browser via the command line interface of Ui.Vision.

How to open the URL in a new tab

If you want to load the website into a new tab, then the selectWindow | TAB=OPEN | url is what you need.

open Example

In the below example, "https://ui.vision/" would be the former base url and "docs/selenium-ide" the relative path.

Command Target Pattern/Text
open https://ui.vision/docs/selenium-ide
echo This was all... -

Works in

Ui.Vision RPA for Chrome Selenium IDE, Ui.Vision RPA for Firefox Selenium IDE, Firefox IDE Classic

Related Demo Macros

DemoAutofill and every other demo macro contain open.

The ready-to-import-and-run source code of all demo macros can be found in the Open-Source RPA software Github repository.

See also

captureScreenshot, Web Automation Extension User Manual, Selenium IDE commands (this page), Classic Firefox Selenium IDE.

Anything wrong or missing on this page? Suggestions?

...then please contact us.

<em>Ui.Vision RPA</em> Selenium IDE for Chrome and Firefox - Web Test Automation

Fresh from the Ui.Vision Forum: The Latest 3 Topics. Join the discussions:

← Meet the Ui.Vision team and users in our forums.