Page 1 of 1

How can I get text from devexpress tooltips?

Posted: Mon Aug 20, 2012 11:47 am
by Pavlo
Hi all

I'm trying to read text value from tooltip (which is devexpress tooltip) and Ranorex Spy can find tooltip window but text, title attributes are empty. (so I can't get text value from tooltip window)

The only available attributes/properties for tooltip window are:
controltype: DevExpress.Utils.Win.ToolTipControllerWindow
controltypename: ToolTipControllerWindow

Application is on .NET C# with DevExpress v.10.1.4
Ranorex version: 3.2.3 and 3.3.1 (I've tried both of them)

Also please find attached 2 snapshots.

Can you please suggest any workaround to access text from tooltip ? It's currently blocks auto-test implementation :(

Re: How can I get text from devexpress tooltips?

Posted: Mon Aug 20, 2012 3:18 pm
by Support Team
Hi,

Did you install the full/extended version of the .Net 4.0 framework or just the client one?
In order to analyze the issue could you send us a small sample which contains such a tooltip?
If you want you can send it to our support mail address: [email protected].

Did you already try to use invoke remotely in order to get the specific message?
Please also check if you are able to identify the text with the ACCExplorer (Microsoft accessibility Explorer).
Here is also a link to a posting about invoking a DevExpress control in order to get the cell values: DevExpress Greed Cell value is empty..

Regards,
Markus
Ranorex Support Team

Re: How can I get text from devexpress tooltips?

Posted: Wed Aug 22, 2012 9:01 am
by Pavlo
Support Team wrote: Did you install the full/extended version of the .Net 4.0 framework or just the client one?
I'm not sure for 100%, can you please give me a tip how to check that?
Support Team wrote: In order to analyze the issue could you send us a small sample which contains such a tooltip?
If you want you can send it to our support mail address: [email protected].
Unfortunately it's not possible now.
Support Team wrote: Did you already try to use invoke remotely in order to get the specific message?
I've tried that, and failed.
ToolTipControllerWindow has couple of properties that I could use (theoretically) like: Text, Name, Tag - but all of them are empty. I've reviewed DevExpress help for tooltips and I need somehow access ToolTipController (and not ToolTipControllerWindow).
Support Team wrote: Please also check if you are able to identify the text with the ACCExplorer (Microsoft accessibility Explorer).
ACCExplorer is not available for download on microsoft site :(


-regards Pavlo

Re: How can I get text from devexpress tooltips?

Posted: Wed Aug 22, 2012 1:09 pm
by Support Team
Hi,

You can see which .Net Framework version is installed in the "Programs and Features" window.
I attached a basic sample of how the invoke works, I hope this will help you to understand how you can invoke specific controls.
It is not easy to help without knowledge of the code you are using.
If you need further assistance we would need to know more about how you tried to invoke that control.
Did you try to invoke the "GetToolTip" method?
Are you using a ToolTipControlInfo object in order to set a specific tool tip text?
Instead of the AccExplorer you can also use Inspect in order to analyze if there is a valid MSAA object for the tooltip text.

Regards,
Markus
Ranorex Support Team