This is a migrated thread and some comments may be shown as answers.

Tool-Tips and extjs

5 Answers 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
S
Top achievements
Rank 1
S asked on 25 May 2011, 08:31 PM
I'm trying to verify that tool tips exist and that they contain specific language.  I saw the previous posting about tool tips that suggested looking for the title attribute of an element, but that suggestion is not working on my system since the tool-tips were not created using the title attribute. I spoke to one of the developers and was told that the system I am working on uses extjs to create and populate the tool-tip, given this fact do you know if there is anyway for me to get telerik to recognize and verify the tool-tip,
thanks

5 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 26 May 2011, 01:06 PM
Hello S,
      the new R1 release of Test Studio has really neat new feature which might be very useful in your case. I found this page on the Internet:
http://flowplayer.org/tools/demos/tooltip/index.html
It has some jquery tooltip examples which I'm going to use in order to demonstrate how to use the Freeze feature.
The Freeze feature is activated by pressing Scroll Lock in the Recording window (i.e. Internet Explorer). When you press Scroll Lock all mouse events will be temporarily disabled. This will allow you to perform verifications that previously required special, coded workarounds.

Check out his video:
http://screencast.com/t/U8iiC063c0D

I'm not sure whether all this info is useful for your use case. If you're still having trouble with your automation task then please go ahead and give us access to your app. We'll try to resolve the issue. If you feel this info is too sensitive for a public forum then please go ahead and open a support ticket for this. Support tickets are completely confidential.

Regards,
Stoich
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
S
Top achievements
Rank 1
answered on 26 May 2011, 06:48 PM
Thanks for the tip on the Scroll Lock feature, it has helped a little but I'm still not able to record the tool-tip.  At this point I can get the blue dot to appear on the tool tip, but when I go to click the dot the tool tip disappears and I end up identifying whatever element resides beneath the tool-tip.  I would be grateful for any suggestions that you might have.
Thanks
0
Stoich
Telerik team
answered on 27 May 2011, 09:09 AM
Hello S,
     the Scroll Lock feature is designed to handle exactly this use case. Do it like this:
1) Hover over the element so that the tooltip appears
2) Click ScrollLock without moving the mouse - at this point all mouse events should be frozen and the tooltip should remain in place. Also, your cursor will be in "highlight mode".
3) Hover over the tooltip and highlight it. Click on the blue dot and select a Verification from the menu. The tooltip won't disappear since we've frozen mouse events.
4) Once you've added the Verification step - press ScrollLock to release the mouse events and continue recording normally.

Let me know if you're still unable to get this to work.

Kind regards,
Stoich
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
S
Top achievements
Rank 1
answered on 27 May 2011, 05:36 PM
I'm still having issues, but I believe the problem is that the application I am working on automatically closes the tool tip after 5 seconds regardless of what anyone does with their mouse. Hopefully, I will be able to find a method to keep the tool tip open a little longer.

Thanks for the help.
0
Stoich
Telerik team
answered on 28 May 2011, 11:51 AM
Hello S,
     you might have to resort to code to get around this. If the tooltip appears for too short (i.e. not enough time so can highlight it and record a Verification) then you might need to write the Find Logic in code and perform the Verification in code. In order to do that you will need some information about the tool tip:
What kind of HTML elements is it? Does it have an ID attribute? - anything that can help you identify it will be useful. Check out this section of our docs on code steps:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/coded_steps.aspx
and this on on Identifying elements:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/telerik-testing-framework/intermediate-topics/element-identification/finding-page-elements.aspx

Greetings,
Stoich
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
General Discussions
Asked by
S
Top achievements
Rank 1
Answers by
Stoich
Telerik team
S
Top achievements
Rank 1
Share this question
or