WPF controls
A control is a screen element in your application that you want to test. For example, a text box or a table. This topic lists all
Standard controls
Tosca Cloud supports the following standard controls for
WPF-specific controls
In addition to the standard controls listed in this topic, Tosca Cloud also supports the following controls:
ContextMenu
Tosca Cloud identifies ContextMenus as tables.
DataGrid
Tosca Cloud identifies DataGrids as tables.
DatePicker
Tosca Cloud scans the DatePicker forms Long, Short, and Custom, and identifies them all as Text. You can input or buffer DatePicker values.
To steer a DatePicker, follow these steps:
-
For the Value, enter the date in the format that your application under test requires.
-
For the DataType, select Date.
Editable ComboBox
Editable ComboBoxes are comboboxes that allow you to add entries to the list of options.
To add an entry to the list of options, follow these steps:
-
During the scan, select the control PART_EditableTextBox within the ComboBox control. If you don't see this control on the list, adjust the level of detail with the ribbon menu entry Filtered items slider in the Advanced View of the scan window.
-
In the test case, modify PART_EditableTextBox to define the new entry:
-
In Value, set the entry that you want to add to the list.
-
Use action mode Input and data type String.
-
Expander
The WPF Expander is an expandable container that can hold other controls. If you want to scan these controls, make sure you expand the Expander before starting the scan.
In addition to the general properties, you can verify the following properties:
Property |
Description |
---|---|
Label |
Expander name. |
IsExpanded |
Indicates whether the Expander is expanded or not. |
You can use the following action mode with Expander:
Action Mode |
Possible values |
Description |
---|---|---|
Expand, Collapse |
Expand or collapse the Expander. |
|
True, False, <property> |
Verify a value or a property. If you don't specify a property, Tosca Cloud uses the IsExpanded property. |
|
<buffer name> |
Tosca Cloud buffers the value True or False, depending on whether the Expander is expanded or collapsed. |
Frame
A Frame is a panel that displays HTML content embedded within a WPF window.
Scan and automate the HTML content separately. When you start the scan, right-click the WPF window and select HTML from the list. Don't specify the parameter Browser for steering this content.
ListView
A ListView is a type of ListBox that can have the format of either a list or a table.
-
If the ListView is in list format, you can steer it as a listbox.
-
If the ListView is in table format, you can steer it as a table.
PasswordBox
Tosca Cloud identifies DataGrids as textboxes.
You can enter text with action mode Input, but you can't verify or buffer the content.
The default data type for PasswordBox is Password.
RibbonSplitButton
A RibbonSplitButton is a button with a dropdown menu on the side, which contains additional controls.
You can steer the controls inside the dropdown just like any other standard controls.
RichTextBox
Tosca Cloud identifies RichTextBoxes as textboxes.
TextBlock
TextBlocks are blocks of read-only text.
-
To verify the text in the TextBlock, use action mode Verify.
-
To activate a hyperlink in the TextBlock, select the URL from the dropdown in the Value column and use action mode Input.
ToggleButton
Tosca Cloud identifies ToggleButtons as buttons.
To verify the status of a ToggleButton, use the property Selected.
ToolBar
ToolBars are containers that contain other controls. You can steer the controls inside the ToolBar just like any other standard controls.
ToolBars may have hidden overflow areas. To see controls in the hidden overflow during the scan, you may have to adjust the level of detail with the ribbon menu entry Filtered items slider in the Advanced View of the scan.
You can also steer the button that opens the overflow area.