Start Web Browser

A Start Web Browser building block is used to start a new web browser window when working with web automation. It supports different browser types and can open the browser window in normal, maximized and minimized mode.

Fully expanded, the Start Web Browser block shows the following properties:

Start web browser block

The Block Header (“Start Web Browser”)

The green input connector in the header is used to trigger the block to start executing.

The green output connector in the header triggers when the web browser has been opened and the web address (URL) loaded.

The title of the block (“Start Web Browser”) can be changed by double-clicking on it and typing in a new title.

Web address (URL)

The web address (URL) to navigate to using the browser. Can contain tokens for field values (added below).

Text fields

Fields that enable the use of external values in the web address (URL).

To use the value of an added field, right-click the text field above where the web address (URL) can be entered and select “Insert token” and then insert this field’s name.

Fields can be renamed by double-clicking on them. The tokens will change their visual appearance accordingly.

Window mode

Select if the browser window should be displayed in normal, maximized or minimized mode when running the case.

Window mode is not supported by Selenium Grid or external cloud providers such as Sauce Labs and Browserstack.

Browser to start

Select which browser type to start.

Timeout occurred

This green output connector triggers if the browser was not started and the web address (URL) loaded within the timeout defined (see below).

Browser window

Once the browser window is opened and active, this property contains a handle to the window. This can be used in cases where multiple browser windows are opened during a case run, to direct other building blocks to use a specific window.

Multiple browser windows are not supported by Selenium Grid or external cloud providers such as Sauce Labs and Browserstack.

Timeout

The maximum time spent for opening the browser window and navigating to the web address (URL) before giving up and triggering “Timeout occurred” (see above).

The default value is 10 seconds.

Note: All cases have a “global timeout” that can be configured in the “Settings” panel. This is unrelated to the timeout of a single building block. However, a running case will automatically be cancelled if it runs for longer than the global timeout.

Author: Claus Topholt, March 23, 2017.