Web Browser - Navigate

Declaration

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

See Also

Web Browser - Click | Web Browser - Close | Web Browser - Extract Source | Web Browser - Get Value | Web Browser - Navigate | Web Browser - Open | Web Browser - Set Value | Web Browser - Wait

Description

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

IMPORTANT: AutoMate supports Internet Explorer automation out-of-the-box; Firefox automation requires a separate extension, which can be downloaded from here. Additionally, the browser you specify must be installed on the target system to ensure that these activities function properly.

Practical Usage

See Description.

Parameters

Browser Properties

Property

Type

Req'd

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. If working with only one browser, this can remain at the default session name, which is BrowserSession1.

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

Page URL

Text

Yes

(Empty)

RESULTVARIABLE="myVar"

The page URL (associated to the session name) to navigate to.

Description Properties

The Description tab allows you to customize the text description of any step as it appears in the Task Builder's Steps Pane.

More on setting custom step description

Error Causes Properties

The Error Causes tab properties lets you instruct a task step to react only to specific errors or ignore certain errors that should cause it to fail.

More on Error Causes properties

On Error Properties

The On Error tab properties lets you determine what the task should do if a particular step encounters an error as defined in the Error Causes properties.

More about On Error properties

Additional Notes

Expressions, Variables & Functions

A percent sign is used as a special character in AutoMate to indicate the beginning and end of an expression. This allows variables, functions and other expressions to be entered in any text parameter of a task's properties. For example: %1+1% inside a task will resolve to 2 at runtime. A more elaborate example is %FileDateTime(myFile)% which results to the date/time of myFile. To help construct expressions, you can open Expression Builder by clicking the Insert Expression (%) button or by pressing F2.

More on expressions

More on variables

More on functions

More on extended functions
More on the expression builder

Example

NOTE: The code below can be copied and pasted directly into the Steps pane of the Task Builder.

 

Description: This sample task performs the following actions:

  1. Open URL "http://www.google.com/" using Internet Explorer.

  2. Open URL "http://www.networkautomation.com" using Internet Explorer.

  3. Navigate to "http://www.google.com".

 

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

<AMBROWSER URL="http://www.networkautomation.com" SESSION="Session2" />

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

 

↑ Top of Page