Open Browser
AutomatR.Web.OpenBrowser
The "Open Browser" activity in AutomatR is designed to open a browser at a specified URL and allows the execution of multiple activities within the opened browser. This activity provides essential options for configuring the browser instance, such as specifying the URL, browser type, instance management, and additional settings.
Properties
Name | Description |
---|---|
Input | |
Instance | Specifies the behavior for handling browser instances. Choose from options such as 'New,' 'Attach to Existing,' or 'Attach or Create.' |
URL | URL of the webpage to be opened in the new browser window. This is a required field when creating a new browser instance. |
Title | Title of the browser window to attach to when the instance is set to 'Attach to Existing.' |
Incognito | Opens a private/incognito session if set to true. |
ClearCache | Clears the browser cache if set to true. |
Maximise | Maximizes the browser window if set to true. |
BrowserType | Type of the browser to be opened, such as Chrome, Firefox, Edge, or Internet Explorer. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. String variables containing the desired display name. |
Optional | |
Capture Console Logs | Enables the capture of console logs during browser activity. |
LogCapture | Enables or disables log capturing. |
Delay | Specifies the wait time (in seconds) before starting the activity. |
Output | |
Browser | Outputs the browser object variable that can be used in other activities, such as 'Close Browser.' |
How to use:
- Drag and drop the "Open Browser" activity onto the workflow.
- Configure the properties by specifying the instance type, URL, title (if attaching to an existing browser), and other optional settings.
- Optionally, configure log capturing and browser type.
- Execute the workflow to open the specified browser with the defined configurations.
Example:
Consider an example where the "Open Browser" activity is used to open a new Chrome browser instance and navigate to a specific URL:
Open Browser:
Instance: New
URL: "https://www.example.com"
BrowserType: Chrome
Incognito: false
ClearCache: false
Maximise: true
Delay: 3
Browser: browserObject
Capture Console Logs: true
In this example, the activity opens a new Chrome browser window, navigates to "https://www.example.com," maximizes the window, and captures console logs. The resulting browser object is stored in the variable "browserObject" for further use in the workflow.