Web Browser - Navigate

Declaration

<AMBROWSER ACTIVITY="navigate" SESSION="text" URL="text" />

Related Topics    

Description

Navigates to a specific page URL in an established web browser session.

NOTE: Automation can be performed on Internet Explorer and Firefox browsers only. Firefox automation requires a separate extension which can be downloaded from here. The browser you specify must be installed on the target system to ensure that these activities function properly. Unlike other session-based actions in which sessions are optional, the use of a session in the Web Browser action is required due to the fact that each created session explicitly links to a specific web browser instance. A session can be created using the Create session or Open Web Browser 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 and not simultaneously in order to avoid sending interactions to the wrong browser window.

Practical Usage

Normally used to navigate from one URL to another. This activity simulates the process of manually entering a URL in a browser's address bar and pressing Enter.

Parameters

Browser Properties

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.

NOTE: Sessions are supported in Internet Explorer and Firefox browsers only.

Page URL

Text

Yes

(Empty)

RESULTVARIABLE="myVar"

The URL of the web page to navigate to.

 

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.

Description:

This simple task opens an Internet Explorer browser set to the URL http://www.google.com/ and navigates to the URL http://www.networkautomation.com.  

<AMBROWSER URL="http://www.google.com/" SESSION="Session1" />

<AMBROWSER ACTIVITY="navigate" SESSION="Session1" URL="http://www.networkautomation.com" />