Print Page | Close Window

ToolkitPro and "UI Automation" interface

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=14662
Printed Date: 22 June 2025 at 5:09am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ToolkitPro and "UI Automation" interface
Posted By: farr02
Subject: ToolkitPro and "UI Automation" interface
Date Posted: 01 July 2009 at 10:06am
Hello,

we are thinking about using the Microsoft “UI Automation” interface for GUI testing purpose. Does Toolkit Pro implement the “UI Automation” interface?

On checking this interface of a MFC dialog using the Codejock XTPPropertyGrid control (Toolkit Pro 11.2.2 / see dialog screen shot: uploads/20090701_100208_dialog.zip - uploads/20090701_100208_dialog.zip )
 
we encounter some problems. UISpy, a Microsoft tool for checking the “UI Automation” interface, is able to detect the control based on a ListBox control but the names of the single ListBox items are corrupted (see UISpy screen shot 1:  uploads/20090701_100342_uispy-1.zip - uploads/20090701_100342_uispy-1.zip ). We are able to select single list elements by applying the control pattern (UI Automation method call)  SelectItem::Select but we don’t find the control pattern for activating editing of a single element. After manually clicking inside a single ListBox item to activate editing a new “Edit” control shows up in UISpy (see UISpy screen shot 2: uploads/20090701_100448_uispy-2.zip - uploads/20090701_100448_uispy-2.zip ). On this control we can apply the Value::SetValue control pattern to set a new value into the “Edit” control. But the new set value actually never appears in the dialog.

Is it possible to set values inside cells of the XTPProperyGrid via the “UI automation” interface or are we doing something wrong?

Best regards
   Holger


-------------
Product: Xtreme Toolkit Pro version 16.3.1, 18.4.0

Platform: Windows 10 (64 Bit)

Language: Visual C++ 15.0 (Visual Studio 2017)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net