Skip to content

Open Web Browser: OPENBROWSER

The Open Web Browser action opens a specified URL in the web browser. The URL can be defined in the parameters section, allowing you to open a static or dynamically generated web address based on your automation needs.

Examples of usage:

  1. Static URL: A static URL is a fixed web address. It points to a specific webpage or website.

Example:

open https://huloop.ai

This action opens the website https://huloop.ai directly in the browser.

  1. Dynamic URL: A dynamic URL is built during the test execution based on variables or parameters. It allows for more flexibility when testing different environments or pages.

Example:

open $G{baseurl}

In this example, $G{baseurl} is a placeholder for a base URL. The actual URL might change based on the value stored in the variable baseurl. For instance, during testing, $G{baseurl} could resolve to https://testsite.com, allowing the browser to open different websites based on the context.

  1. Dynamic URL with Path: This version of the dynamic URL adds a specific path to the base URL, navigating to a particular page or resource within the website.

Example:

open “$G{baseurl}/testpage.htm”

In this case, $G{baseurl} represents the base URL (e.g., https://testsite.com), and /testpage.htm is a specific page or file within that website. If $G{baseurl} resolves to https://testsite.com, the action would open https://testsite.com/testpage.htm in the browser.

  • Use a static URL when testing a website (e.g., a homepage or landing page).
  • Use a dynamic URL when testing in multiple environments (e.g., test, production) where the base URL might change.
  • Use a dynamic URL with path when you need to navigate to specific pages or resources within a website, especially if the base URL can vary.

The Open Web Browser action helps automate navigation to specific web page during execution.

Steps to configure:

  1. Select Open Web Browser from the Action drop-down.
  2. Add the desired URL in the Parameters box.
  3. Click Save.

Note: While the steps for adding an Action are identical in both views, the display of the steps changes:

Adding Open Web Browser action in Tabular View
Adding Open Web Browser Action in Tabular View
Adding Open Web Browser action in Card View
Adding Open Web Browser Action in Card View

Expected Outcome on Execution:  https://www.google.com/ opens in the browser.

Back To Top