Hi Alex,
I am getting following details in TestComplete log, if tried to get the window properties by following code -
Sub Test1()
Test1()
Set p = Sys.Process("SpaceClaim")
p = .Process("SpaceClaim")
Call Sys.Process("SpaceClaim").Form("Design1 - SpaceClaim Engineer Pre-Release").Panel("RibbonControl- Don't localize").WinFormsObject("designRibbonPanel").Panel("Sketch").Grouping(0).Grouping(1).Button("Rectangle").HoverMouse(-1,-1)
.Process("SpaceClaim").Form("Design1 - SpaceClaim Engineer Pre-Release").Panel("RibbonControl- Don't localize").WinFormsObject("designRibbonPanel").Panel("Sketch").Grouping(0).Grouping(1).Button("Rectangle").HoverMouse(-1,-1)
if p.Window("*tooltips_class32*", "*", 1).exists then
tooltipsText= p.Window("*", "*", 1).wText
Log.Message "tooltipsText= " & tooltipsText
.Message "tooltipsText= " & tooltipsText
End if
End Sub
For the command "tooltipsText= p.Window("*", "*", 1)", I am getting following details in Log -
Failed to recognize the window using the Window or WaitWindow method called with the following parameters:
Window class: '*';
Window caption: '*'
Index : 1
The windows below correspond to these parameters:
WinFormsObject("WindowsForms10.Window.0.app.0.3989a29", "")
Window("65E78DF8-B951-48d8-8B89-644785BB942B", "E276F316-C2E0-4ff4-A09B-0CECE6CE7B64", 1)
Window("tooltips_class32", "", 1)
Window(".NET-BroadcastEventWindow.2.0.0.0.37fe737.0", ".NET-BroadcastEventWindow.2.0.0.0.37fe737.0", 1)
Window("HwndWrapper[CADPreprocessor;MainGuiThread;ad19de9d-2e05-4e6a-bd2a-61a7231779d6]", "MediaContextNotificationWindow", 1)
Window("HwndWrapper[SpaceClaim.exe;MainGuiThread;a50314b2-9dd5-48b6-a970-99789987c7fc]", "MediaContextNotificationWindow", 1)
Window("HwndWrapper[SpaceClaim.exe;MainGuiThread;46a1eb14-1399-43ca-857d-a956e268ab7f]", "SystemResourceNotifyWindow", 1)
List("Thickness:")
Window(".NET-BroadcastEventWindow.2.0.0.0.3989a29.0", ".NET-BroadcastEventWindow.2.0.0.0.3989a29.0", 1)
Window("GDI+ Hook Window Class", "GDI+ Window", 1)
Window("MSCTFIME UI", "M", 1)
Window("IME", "Default IME", 1)
ToolWindow("Drag or click to draw a rectangle aligned with the sketch grid.")
Here, the last line
ToolWindow("Drag or click to draw a rectangle aligned with the sketch grid.")
is actually the tooltip of the object.
Can you help in getting the commands correct with the proper name of class?