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.
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
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