Web Browser - New tab

Declaration

<AMWEBBROWSER ACTIVITY="newtab" SESSION="text" URL="text" FINISHLOADING="YES/NO" />

Related Topics   

Description

Opens a new tab in an existing web browser session.

NOTE:
  • The Web Browser action is not backwards compatible with the Web Browser (Legacy) action.
  • This activity is compatible with Chrome, Edge, and Firefox browsers only – Internet Explorer is not supported.
  • The browser you specify must be updated to the latest version and installed on the target system to ensure the Web Browser action functions correctly.
  • Unlike other session-based actions where sessions are optional, the use of a session in the Web Browser action is required as each created session explicitly links to a specific web browser instance. A session is created using the Web Browser - Create session or Web Browser - Open activity. Numerous sessions are supported within a single task, however, since Web Browser actions are performed interactively (and not in the background), each session must run concurrently to avoid sending interactions to the wrong browser window.

Practical Usage

See Description.

Parameters

Browser

Property Type Required Default Markup Description
Session name Text Yes BrowserSession1 SESSION="mySession" Specifies the name of an existing session to associate with this activity. Numerous sessions can exist within a single task allowing activities to be performed on several web browsers simultaneously.
NOTE:
  • This activity supports Web Browser sessions in Chrome, Edge, and Firefox browsers only – Internet Explorer is not supported.
  • Firefox does not require a separate extension to be installed with this version of the Web Browser action.
Page URL Text No (Empty) URL="www.helpsystems.com" The URL of the page to open in the new tab.

Advanced

Property Type Required Default Markup Description
Wait until the page is completely loaded Yes/No No Yes FINISHLOADING="YES" If selected, this parameter will wait for the page URL to completely load in the new tab before moving to the next step in the task.

Description

Error Causes

On Error

Example

NOTE:
  • The sample AML code below can be copied and pasted directly into the Steps Panel of the Task Builder.
  • Parameters containing user credentials, files, file paths, and/or other information specific to the task must be customized before the sample code can run successfully.

Description

This sample task opens the Edge browser to https://www.helpsystems.com and then opens a new tab to https://www.helpsystems.com/product-lines/automate.

Copy
<AMWEBBROWSER URL="https://www.helpsystems.com" BROWSER="edge" SESSION="BrowserSession1" />
<AMWEBBROWSER ACTIVITY="newtab" SESSION="BrowserSession1" URL="https://www.helpsystems.com/product-lines/automate" />