Forum Discussion
I'm not sure about your application but sometimes I have to hover my mouse over the object for a second and wait for the tooltip to show, then i do the tooltip validation.
My 2cents, hope that helps...
- sergeys9 years agoContributor
Thanks for response.
Could you please bring more details of how do you perform tooltip validation?
- jaydee9 years agoOccasional Contributor
So i break it up into a few short steps, its just a way but not the only way. Here is the example using KeyWord tests but you could always convert to script later. This is a workaround that I had to do for most of my WPF forms I test.
- I add an On-Screen action then drag the spy tool over the object,
- Click Next then to get to the "Specify Method or Property" screen
- Select "HoverMouse" then click Next
- Then the last screen is "Operation Parameters", just leave the coordinates for X and Y at -1 then Click Finish
- Then I drag over a "Delay" operation from under Miscellaneous section and give it 1000ms, just enough to let the tooltip show
- Finally I do a Property Checkpoint on the object and drill down to the tooltip and there should be a value populated for the tooltip of the object now
- sergeys9 years agoContributor
Thanks for response.
I got what workaround you meant. The staight way to get tooltip when working in Script rather than in Keyword test would be to simply use Object Spy and search for the text from tooltip - thus you could find ToolTip property and add Property Checkpoint, that's fine.
The thing is that tooltip is dynamically changed in my grid. It depends on what errors are found in current line, and at the end shows all these errors as tooltips.
I do have ToolTip property - but it is Object, and it doesn't contain any text under itself - please see 'Tooltip Property' attached. Tooltip Object Property also contains Tooltip property under itself, but it is Null Object - please see 'Tooltip Content part 3' attached.
Please see screenshots attached with properties.
I think there should be some serial number of error message that is kept in some object, or tooltip text is placed in some more levels of nesting in any property under, not sure.
Will try to find it using FindChild or some other Find method...
Related Content
- 10 years ago
- 7 years ago
Recent Discussions
- 17 hours ago