How do I get the text of a tooltip? I'm not using the Ranorex studio for recording and hence I don't think I can use the method of suing the Recorder Hot key 'T'.
I tried automating the steps by
1. Moving to the control ... Ranorex.Mouse.MoveTo(saveCtrl);
2. Waiting for sometime .... Delay.Milliseconds(4000);
3. Here I tried various methods as below , but the output was always null, instead of the expected tooltip.
>>string s = Ranorex.ToolTip.Current.Text;
>>IList<Ranorex.ToolTip> tt = form.FindDescendants<Ranorex.ToolTip>(); (form is the main form)
>> IList<Ranorex.ToolTip> tt = saveCtrl.FindDescendants<Ranorex.ToolTip>()
>>Ranorex.ToolTip tt = form.FindSingle<Ranorex.ToolTip>("/tooltip");
Could someone help me with this?
Thanks,
Sherin
Get the text of a tooltip
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Get the text of a tooltip
Hello Sherin,
The ToolTip element can be found as a descendant of your Host element.
Regards,
Robert
The ToolTip element can be found as a descendant of your Host element.
ToolTip tip = Host.Local.FindDescendant<ToolTip>();Hope this information helps.
Regards,
Robert