Web applications can contain the same controls as standard applications, including the following:
Control
|
Classic Agent Class
|
Open Agent Class
|
check box
|
HtmlCheckBox
|
DomCheckBox
|
combo box
|
HtmlComboBox
|
No corresponding class.
|
list boxes
|
HtmlListBox
|
DomListBox
|
popup lists
|
HtmlPopupList
|
DomListBox
|
pushbuttons
|
HtmlPushButton
|
DomButton
|
radio lists
|
HtmlCheckBox
|
DomCheckBox
|
All these classes are derived from their respective standard class. For example,
HtmlCheckBox is derived from
CheckBox. So all the testing you can do with these controls in standard applications you can also do in Web applications.
Classic Agent Example
The following code gets the list of items in the credit card list in the
Billing Information page of the sample GMO application:
LIST OF STRING lsCards
lsCards = BillingPage.CreditCardList.GetContents ()
ListPrint (lsCards)
Result:
American Express
MasterCard
Visa
Open Agent Example
The following code gets the list of items in the credit card list in the
Billing Information page of the sample GMO application:
LIST OF STRING lsCards
lsCards = WebBrowser.BrowserWindow.CardType.Items
ListPrint(lsCards)
Result:
American Express
MasterCard
Visa