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.
Please note that next Web building block start executing on the new page only when client-side event ‘DOMReady’ is fired.
Fully expanded, the Start Web Browser block shows the following properties:
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.
Select which browser type to start.
The web address (URL) to navigate to using the browser. Can contain tokens for field values (added below).
Example of valid URL formats are : http://domain, https://domain, domain and IP address (xxx.xxx.xxx.xxx).
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.
Select if the browser window should be displayed in normal, maximized or minimized mode when running the case.
User profile is used, in case, certain plug-ins, extensions, bookmarks etc. are required while initializing test case. User can create custom profiles on Chrome and Firefox browsers which are saved on the local path of a machine. Refer here for detailed info on creation/usage of profiles.
Provide the path of the profile from the root directory.
Using Chrome browser user can automate web applications on Desktop, Phone, Tablet and Laptop. Below are the options available under Device type section
Please note that device type section will be available only when ‘Browser to start’ is set to ‘Chrome’.
This green output connector triggers if the browser was not started and the web address (URL) loaded within the timeout defined (see below).
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.
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.
Updated April 20th, 2018.