Open Web Page Action

Description

Opens a web page at the specified address (example: http://www.networkautomation.com) using the default browser. Works best with Microsoft Internet Explorer, which allows the action to detect when the page is finished loading before moving on to the next step.

When used with Internet Explorer, this action loads the Web page and waits until the page is finished loading. This is of special value when a load time value is required (see AMLASTEXECUTIONTIME system variable), or keys need to be sent to the web page only after it is finished loading. This action can be used to perform load testing, site testing, or Automated Workflow form completion.

Note: If you simply need to download a file or retrieve the contents of a page (the web browser does not need to be displayed), it would be better to use the HTTP Download Action <AMHTTPDOWNLOAD>. Similarly, if you need to post values to a web form and do not wish to go through the browser, it may be better to use the native HTTP Post Action <AMHTTPPOST> to perform this.

Declaration

<AMOPENWEBPAGE URL="text" WAIT="yes/no" WINDOWTITLEVARIABLE="text [variablename]" WINDOWCLASSVARIABLE="text [variablename]" WINDOWHANDLEVARIABLE="text [variablename]" RESULTDATASET="text" />

Example

<AMOPENWEBPAGE URL="http://www.networkautomation.com" WINDOWTITLEVARIABLE="VariableName" /> 

<AMOPENWEBPAGE URL="http://www.networkautomation.com" WAIT="NO" RESULTDATASET="DatasetName" />

General Tab Parameters

Webpage to open: Specifies the web page or URL that should be loaded. The web page will open in the default web browser. This value can be any URL that is valid to the current web browser.

Text, Required
MARKUP: PAGE="http://www.networkautomation.com"

Wait for web page to finish loading: Specifies that the step should wait for the web page to finish loading before moving on to the next step. This works with Microsoft Internet Explorer only and is especially useful if you wish to record the amount of time it takes for the page to load.

Yes/No, Optional, Default: YES
MARKUP: WAIT="YES"

Advanced Tab Parameters

Populate variable with window title: Specifies the name of an existing variable that should receive the title of the window that was opened.

Text [variablename], Optional, Default: (blank)
MARKUP: WINDOWTITLEVARIABLE="MyVariableName"

Populate variable with window class: Specifies the name of an existing variable that should receive the class of the window that was opened.

Text [variablename], Optional, Default: (blank)
MARKUP: WINDOWCLASSVARIABLE="MyVariableName"

Populate variable with window handle: Specifies the name of an already existing variable that should receive the handle of the window that was opened.

Text [variablename],  Optional, Default: (blank)
MARKUP: WINDOWHANDLEVARIABLE="MyVariableName"

Create and populate dataset with window information: Specifies the name of a dataset to be created and populated with data from the window that was opened. In addition to the standard dataset fields, the dataset will contain the following:

  • Title: the window title

  • Class: the window class

  • Handle: the window handle

Text, Optional, Default: (blank)
MARKUP: RESULTDATASET="DatasetName"