Web Browser (Legacy) - Wait |
Declaration
<AMBROWSER ACTIVITY="state" SESSION="text" WAITTIME="number" />
Description
Waits an additional amount of time after the browser window has finished loading (and is ready for input) before continuing to the next step.
Practical Usage
Can be used as a supplementary wait parameter to allow a browser to wait a specific period of time after it is ready for input. Alternatively, the Wait action group contains other ways to pause execution or wait for a specific event to occur.
Parameters
Location
Property | Type | Required | Default | Markup | Description |
---|---|---|---|---|---|
Session name | Text | Yes | BrowserLegacySession1 | 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 BrowserLegacySession1. NOTE: Sessions are supported in Internet Explorer and Firefox browsers
only. |
State
Property | Type | Required | Default | Markup | Description |
---|---|---|---|---|---|
Wait until the browser is ready for input, then wait an additional | Number | Yes | (Disabled) | WAITTIME="3" | If
enabled, specifies the amount of seconds this activity should
wait after the browser is ready for input before continuing to
the next step. NOTE: This activity will always wait until the browser is ready for
input. It can wait an additional amount of time as specified,
but doesn’t have to. |
Example
- 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 short task opens an Internet Explorer browser set to the URL http://www.google.com/ and waits 5 seconds before navigating to the URL https://www.helpsystems.com.
<AMBROWSER URL="http://www.google.com/" SESSION="mySession" />
<AMBROWSER ACTIVITY="state" SESSION="mySession" WAITTIME="5" />
<AMBROWSER ACTIVITY="navigate" SESSION="mySession" URL="https://www.helpsystems.com" />