OpenAdditionalWebPage |
Top Previous Next |
×V4.1Ø
Syntax - OpenAdditionalWebPage <Page Name> <Command> <Element Identifier> [<Username>] [<Password>] Where: <Page Name> is a literal string, a variable containing a string or an unquoted user defined name <Command> is one of the following: ClickWebElement, SetWebDropDown, OpenURL <Element Identifier> is a valid web element identifier as described in Identifying an Element.
Description: This command is used to open an additional web browser from the element specified. This command must be run before EMUE is able to interact with the new web page. Additionally, EMUE will only interact with the web page that was opened with the OpenWebPage command. That is, if an instance of the web page is opened manually, EMUE is unaware of that instance and is not able to manipulate it. This command works in two parts: first the command specified by <Command> is run. This should be the command that causes the additional page to open. The command may click on a link, a button, or some other element. The command can also set a drop down value. You may also go directly to a URL by using the OpenURL option. Once the new page opens, the <Page Name> is used as an alias within the script for referencing the page. That is, when using the UseWebPage command, the page that should be used is specified using this alias. If, when the additional page opens, a logon dialog appears, EMUE will use the <Username> and <Password> parameters, if they are provided, to handle the dialog. If these credentials are provided and no logon dialog appears when the web page is opened, then EMUE will log information to the trace file indicating that there was no dialog, and then processing will proceed.
Soarian SmartUI: No Chrome: Yes
Sample 1: The following statement opens an additional web browser window and navigates to the specified URL via a mouse click. OpenAdditionalWebPage "WebPage_02" ClickWebElement "Browser=Popup Test 1::Button,ID=btnNewWindow,INDEX=1"
Sample 2: The following statement opens an additional web browser window named ReportsAndCubes and navigates to the specified URL by performing via a mouse click. OpenAdditionalWebPage ReportsAndCubes ClickWebElement "Browser=Popup Test 1::Button,ID=btnNewWindow,INDEX=1"
Sample 3: The following statement opens an additional web browser window named ReportsAndCubes and navigates directly to the specified URL. OpenAdditionalWebPage Transaction OpenURL "Browser=* Soarian*:sframeInner->wellFrame->tabWell*->:Link,title=Show transaction detail.,INDEX=1"
Sample 4: The following statement opens an additional web browser window named Report and navigates to the URL by picking an item from a drop down list. OpenAdditionalWebPage Report SetWebDropDown "Print Report" "Browser=* Soarian*:sframeInner->wellFrame->tabWell*->:DropDownList,id=printReport,INDEX=1"
See Also:
|