OpenWebPage |
Top Previous Next |
×V4.1Ø
Syntax - OpenWebPage <URL> [<ClearCache | ClearCookies | ClearAll | ClearNothing>] [<UserName>] [<Password>] Where: <URL> is a literal string or a variable that contains a string value.
Description: This command is used to open a web browser to the <URL> specified. This command must be run before EMUE is able to interact with the web page. Additionally, EMUE will only interact with the web page that was opened with the OpenWebPage or OpenAdditionalWebPage commands.
OpenWebPage can optionally be configured to clear the browsers cache, clear cookies, or both. This can be useful if the browser is storing information that is preventing the next execution of the script to run properly. For example, a saved password may prevent the script from signing in properly or a browser error may require this browser data to be cleared in order to prevent the error. Users have reported to us that after a Soarian upgrade, cached files can cause spurious JavaScript errors when using the application. Using the ClearAll option will clear all files to help prevent this error. The default value for this command is ClearNothing.
OpenWebPage also has the ability to handle windows authentication dialogs by use the optional parameters, UserName and Password. If these are provided EMUE will look for the dialog, pass the values and click the ok button to send the credentials.
Note: If EMUE is having trouble interacting with certain web applications, it may be helpful to close other open browsers using the command CloseAllWebPages before using the OpenWebPage command. Note: For Chrome, if a user does not include http:// or https:// in the URL, EMUE will add https:// automatically.
Soarian SmartUI: No Chrome: Yes
Sample 1: The following statement opens a new web browser window and navigates to the specified URL. OpenWebPage "https://website.system.com/"
Sample 2: The following statement opens a new web browser window and navigates to the specified URL. It also clears the Internet Explorer cache and cookies. OpenWebPage "https://website.system.com/" ClearAll
Sample 3: The following statement opens a new web browser window and navigates to the specified URL. It also passes the username and password to the windows authentication dialog. OpenWebPage "https://website.system.com/" ClearNothing "EMUEUser" "Password"
See Also:
|