Properties of web application controls
A control is a screen element in your application that you want to test. For example, a button, a table cell, or a menu entry. This topic lists the properties of web application controls:
Standard properties
The following table lists the technical standard properties of web application controls.
The column Control Type shows the control types that the property is available to. You can use these properties in the Value of test steps.
Property Name |
Data Type |
Control Type |
---|---|---|
Alt |
String |
Image (Img) element |
Checked |
Boolean |
All input elements |
ClassName |
String |
All HTML elements |
Cols |
Numeric |
Textarea element |
ColSpan |
Numeric |
Table Cell (TH, TD) |
DefaultValue |
String |
Textarea element |
Disabled |
Boolean |
Textarea element |
Disabled |
Boolean |
ComboBox, ListBox (Select element) |
Disabled |
Boolean |
Button element |
Disabled |
Boolean |
All input elements |
Href |
String |
Anchor element |
Id |
String |
All HTML elements |
InnerHTML |
String |
All HTML elements |
InnerText |
String |
All HTML elements |
Multiple |
Boolean |
ComboBox, ListBox (Select element) |
Name |
String |
ComboBox, ListBox (Select element) |
Name |
String |
(I)Frame element |
Name |
String |
All input elements |
Name |
String |
Textarea element |
OuterHTML |
String |
All HTML elements |
OuterText |
String |
All HTML elements |
ReadOnly |
Boolean |
Textarea element |
ReadOnly |
Boolean |
All input elements |
ReadyState |
String |
HTML Document |
RowSpan |
Numeric |
Textarea element |
RowSpan |
Numeric |
Table Cell (TH, TD) |
Selected |
Boolean |
ListItem (Option element) |
SelectedIndex |
Numeric |
ComboBox, ListBox (Select element) |
Size |
Numeric |
ComboBox, ListBox (Select element) |
Src |
String |
(I)Frame element |
Src |
String |
Image (Img) element |
Tag |
String |
All HTML elements |
Title |
String |
HTML Document |
Title |
String |
All HTML elements |
Type |
String |
All input elements |
Url |
String |
HTML Document |
Value |
String |
All input elements |
Value |
String |
ListItem (Option element) |
Value |
String |
Textarea element |
Value |
String |
Button element |
User-defined properties
After you've scanned your application, you can see user-defined properties in the module properties. Property names in Tosca Cloud consist of the original user-defined property name and the prefix attributes_. For example, attributes_MySpecialProperty.
You can use these kinds of properties for verifications.
Additional properties of individual controls
The following controls have additional properties you can use in your tests:
Checkbox
This control has the following properties:
Technical property |
Description |
---|---|
Label |
Returns the technical property InnerText or Value. |
Selected |
Setter: Sets the technical property Checked to the desired value and runs the specified FireEvents. Getter: Returns the value of the property Checked. |
IsSteerable |
Runs the standard validation. In addition, it verifies whether the properties Disabled and ReadOnly of the HTML element have the value false. |
HTML documents and HTML frames
These control types are HTML-specific. Tosca Cloud applies the default behavior to control types where you haven't specified a property in the respective Value in your test case.
Control type |
Business-based property |
Default behavior |
---|---|---|
HtmlDocument |
Title |
Input operations: none Reading operations: returns the technical property Title |
HtmlFrame |
None |
None |
Image
This control has the following property:
Technical property |
Description |
---|---|
Picture |
Specifies the path to the corresponding image (technical property src). |
Push button
This control has the following property:
Technical property |
Description |
---|---|
Label |
Returns the technical property InnerText (for BUTTON) or Value (for INPUT). |