|
6#
楼主 |
发表于 2006-11-2 17:38:26
|
只看该作者
我没找到可以用来判断的属性,我试了enabled,focused,visible, 都不能准确判断。在winbutton里面也没有其他什么属性可供判断了,下面是winbutton的所有属性,哪一个才能判断next is available?
WinButton Identification Properties
Object identification properties can be used in the object repository description, in programmatic descriptions, in checkpoint and output value steps, and as argument values for the GetTOProperty and GetROProperty methods.
The WinButton test object supports the identification properties listed in the table below.
Property Name
Description
abs_x The object's absolute x-coordinate (left) relative to the screen (in pixels).
abs_y The object's absolute y-coordinate (top) relative to the screen (in pixels).
attached text The static text that is attached to a control.
enabled Indicates whether the object is enabled.
Possible values:
True
False
focused Indicates whether the object has the focus.
Possible values:
True
False
height The object's height (in pixels).
hWnd The handle of the run-time object's window.
index The ordinal identifier that QuickTest assigns to the object to indicate the order in which the object appears in the code relative to other objects with an otherwise identical description. This property cannot be used with GetROProperty.
Values begin with 0.
location The ordinal identifier that QuickTest assigns to the object to indicate where the object appears within the window, frame, or dialog box. Values are assigned from top to bottom, and left to right. This property cannot be used with GetROProperty.
Values begin with 0.
NativeClass The object's window class name.
RegExpWndClass The permanent part of the MFC window class.
RegExpWndTitle The constant part of the window title.
RightAligned Indicates whether the object has generic "right-aligned" properties.
RightToLeftLayout Indicates whether the object's horizontal origin is on the right edge.
RightToLeftReading Indicates whether the object's text is displayed using right-to-left reading-order properties.
text The text associated with the object.
visible Indicates whether the object is visible.
Possible values:
True
False
width The object's width (in pixels).
window id The object's window identifier.
WindowExtendedStyle The extended window style of the object.
WindowStyle The window style of the object.
x The object's x-coordinate (left) relative to the parent window (in pixels).
y The object's y-coordinate (top) relative to the parent window (in pixels). |
|