Coded UI - Reading instructional text from a control when hovering a link
-
Monday, March 05, 2012 10:14 AM
Hi,
We've a link say 'more' and when we hover this link (it is a .net app) there is a user message will be displayed on a control. But the control is little away from the 'more' link and when move the pointer away from the link, the message will disappear. Is there anyway to recognize the control where message is being displayed?.
Thanks & Regards, Sasisekar J
All Replies
-
Wednesday, March 07, 2012 11:37 AMModerator
Hi Sasisekar,
I guess it’s a ‘tips’ like function in your application and I also build up a project against this issue, use the css to implement this tips function, if this doesn’t meet your situation please correct me, here is a figure for you:
We could find it by following steps:
- Drag the crosshair on to the hyperlink ‘More’, it will highlighted by rectangular box .
- Expend test builder it will appears like following figure
- Click the down black arrow right side of refresh icon.
- The tips control will shows up.
Tony Xiao [MSFT]
MSDN Community Support | Feedback to us
- Marked As Answer by Tony xiaoModerator Wednesday, March 14, 2012 6:04 AM
- Unmarked As Answer by Sasisekar J Monday, March 19, 2012 8:42 AM
-
Monday, March 19, 2012 8:55 AM
Thanks Tony.
When we try the above, we got properties as follows. In the following image the text starts with 'If you do not ...' (with 'Yellow' background) is the text we are getting while hover the link 'more'. But no property contains that text.
Thanks & Regards, Sasisekar J
- Edited by Sasisekar J Monday, March 19, 2012 8:56 AM Added more details.
-
Tuesday, March 27, 2012 9:54 AMModerator
Hi Sasisekar,
The tooltips function could implements by different ways, most important thing is which tag contains its message text in rendered html page, like span(This is what I have tried before), div tag I guess this might be the same as this issue, and tooltips property of Asp.Net control.
For the control’s property, the tip message text will be captured by Coded UI directly and the tip message will be recognized by HelpText with the associated control, so I guess this isn’t meet this situation.
For the implementation by div tag, the tip message wrapped by a pares of div tag and it will shows up when the mouse hover up, so it’s hard to captured by Coded UI during recording, but it could be added into the UIMap using the Test Builder and please make good use of twist tool to find that div tag which contains tips message text.
After added this into UIMap then you could hand code with reading its message text.Tony Xiao [MSFT]
MSDN Community Support | Feedback to us
-
Tuesday, March 27, 2012 12:01 PM
Thanks Tony for your inputs.
Here the main problem is when I move the mouse pointer out of the 'more' link the corresponding user tips getting disappeared. Thru twist tool along with the keyboard short cut also I'm not able to navigate to that tool tip window. Looking for some work around. If anything helps/ works I'll update here.
Thanks & Regards, Sasisekar J
-
Wednesday, March 28, 2012 9:41 AMModerator
Hi Sasisekar,
If you could provide us a sample project which could reproduce this issue that would be nice.
Tips: You could upload the project file to skydrive and then share it to us.
Tony Xiao [MSFT]
MSDN Community Support | Feedback to us

