PDFComboBox Object
Description
A combo box in an interactive PDF document.
Operations
The sections below list the built-in methods and properties that you can use as operations for the PDFComboBox object.
Note: You can also view a list and descriptions of the PDFComboBox description properties, for use in object repository descriptions, programmatic descriptions, checkpoint and output value steps, and as argument values for the GetTOProperty and GetROProperty methods.
Methods
![]() | Saves a screen capture of the object as a .png or .bmp image using the specified file name. |
![]() | Checks whether the actual value of an item matches the expected value. |
![]() | Checks whether the actual value of the specified object property matches the specified expected value within the specified timeout. |
![]() | Returns the collection of child objects contained within the object. |
![]() | Clicks the object. |
![]() | Double-clicks the object. |
![]() | Returns the collection of properties and current values from the object in the application. |
![]() | Returns the current value of the description property from the object in the application. |
![]() | Returns a string containing the names of all of the items in the combo box. |
![]() | Returns the value of the item specified by the index. |
![]() | Returns the number of items in the combo box. |
![]() | Returns the item that is selected in the combo box. |
![]() | Returns the collection of properties and values used to identify the object. |
![]() | Returns the value of the specified description property from the test object description. |
![]() | Highlights the object in the application. |
![]() | Retrieves the current value of an item and stores it in a specified location. |
![]() | Instructs UFT One to re-identify the object in the application the next time a step refers to this object. |
![]() | Selects an item from the combo box. |
![]() | Activates the selected object and brings it into focus. |
![]() | Sets the value of the specified description property in the test object description. |
![]() | Returns a string that represents the test object. |
![]() | Simulates keyboard input on the object. |
![]() | Waits until the specified object property achieves the specified value or exceeds the specified timeout before continuing to the next step. |
Properties
![]() | Checks whether the object currently exists in the open application. |
Click Method
Description
Clicks the object.
Syntax
object.Click [X], [Y], [MouseButton]
Arguments
Parameter | Description |
---|---|
X |
Optional. An integer value. The x-coordinate of the click. Note that the specified coordinates are relative to the upper left corner of the object. The default value is the center of the object. Default value = -9999 |
Y |
Optional. An integer value. The y-coordinate of the click. Note that the specified coordinates are relative to the upper left corner of the object. The default value is the center of the object.
Default value = -9999 |
MouseButton |
Optional. A predefined constant or number. The mouse button to use for the click. Default value = micLeftBtn |
Return Type
None
Example
DblClick Method
Description
Double-clicks the object.
Syntax
object.DblClick X, Y, [MouseButton]
Arguments
Parameter | Description |
---|---|
X |
Required. An integer value. The x-coordinate of the double-click. Note that the specified coordinates are relative to the upper left corner of the object. |
Y |
Required. An integer value. The y-coordinate of the double-click. Note that the specified coordinates are relative to the upper left corner of the object. |
MouseButton |
Optional. A predefined constant or number. The mouse button to use for the double-click. Default value = micLeftBtn |
Return Type
None
Example
GetContent Method
Description
Returns a string containing the names of all of the items in the combo box.
Syntax
object.GetContent
Return Type
String.
Example
GetItem Method
Description
Returns the value of the item specified by the index.
Syntax
object.GetItem Item
Arguments
Parameter | Description |
---|---|
Item | Required. An integer. The numeric index of the item. Index values begin with 0. |
Return Type
String.
Example
GetItemsCount Method
Description
Returns the number of items in the combo box.
Syntax
object.GetItemsCount
Return Type
Integer.
Example
GetSelection Method
Description
Returns the item that is selected in the combo box.
Syntax
object.GetSelection
Return Type
String.
Example
Select Method
Description
Selects an item from the combo box.
Syntax
object.Select Item
Arguments
Parameter | Description |
---|---|
Item | Required. A Variant. The item to select from the list. The item value (with quotes) or numeric index (without quotes) can denote the item. The index value of the first item is 0. |
Return Type
None.
Example
SetFocus Method
Description
Activates the selected object and brings it into focus.
Syntax
object.SetFocus
Return Type
None.
Example
Type Method
Description
Simulates keyboard input on the object.
Syntax
object.Type KeyboardInput
Arguments
Parameter | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
KeyboardInput |
Required. A String value.
|
Return Type
None
IMPORTANT
Although the Type method is supported for most objects, if you enter a Type statement for an object in which a user cannot enter text, the method has no visual effect.
Example
See also: