GetWebDropDownList

Top  Previous  Next

×V4.2Ø

S

A

W

WS

ü

Syntax -

GetWebDropDownList <List Name> <Element Identifier>

       Where:

               <List Name>  is the user defined name that is assigned to the list.

               <Element Identifier> is a valid web element identifier as described in Identifying an Element.

 

Description:

This command is used to extract the contents of a web drop down or Soarian ICC combo box identified by <Element Identifier> and store them in a list defined by <List Name>.  In cases where a dropdown is dynamically filled, it can be useful to navigate through the contents when they are stored in a list in order to make a decision about which option to choose and to build a command to select that item.

If the list defined by <List Name> does not exist, EMUE will create it.

 

Soarian SmartUI: Yes

Chrome: Yes

 

Sample:

       The following retrieves the text from a drop down and stores it in a list called Providers.  Then EMUE searches the list for an entry that includes the provider ID stored in the ProvID variable.  By concatenating an asterisk (*) onto the end of the SearchString variable, EMUE will use a pattern match to find an entry.  Once the desired entry is identified, the text can be used to select that entry from the dropdown.

 

GetWebDropdownList Providers "Browser=Main:sframeInner->wellFrame->tabWell1:DropDownList,ID=ctlcmpProviderList__,INDEX=1"

Concatenate SearchString ProvID "*"

FindListPosition Providers Search 1 Start EnableWildCard

If EndOfList Providers Goto ProviderNotFound

GetListMember Providers DropDownText

SetWebDropDown  DropDownText "Browser=Main:sframeInner->wellFrame->tabWell1:DropDownList,ID=ctlcmpProviderList__,INDEX=1"

 

See Also:

Identifying an Element

WaitForWebPageCompletion

WebElementTimeout

SetWebCheckBox

EnableSoarianSmartUI