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

How to parameterize mouse hover over?

3 Answers 175 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Madhu
Top achievements
Rank 1
Madhu asked on 20 Jan 2011, 10:16 PM

Is there any way to parameterize(data driven) mouse hover over?

I’m using QA Edition Q3 release.
In my Silverlight application tons of menus and sub menus required mouse hover over.

Your valuable help save my time, Thanks in advance...

Madhu.

3 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 26 Jan 2011, 11:09 AM
Hi Madhu,
    yes, there's a way to simulate a mouse hover over action.
Open a Recorder and enable highlighting from the menu in the top-right corner. Position your mouse over the element until the nub appears. Click the nub to bring up the pop-up menu. 
From the pop-up menu choose Mouse Actions (bottom-left corner). You'll find Hover over on the bottom of the lists (screenshot 1).

Let me know whether that's what you needed!

All the best,
Stoich
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
0
Madhu
Top achievements
Rank 1
answered on 26 Jan 2011, 04:11 PM

Hi Stoich,

Thanks for support!!

This is not I’m looking….?

I know and already implemented the way you explained above!!

My questions is how to parameterize (data driven) mouse hover over? As I explained in my Silverlight application has tons of menu and sub menus required hover over?

Thanks,
Madhu.

0
Accepted
Stoich
Telerik team
answered on 26 Jan 2011, 06:17 PM
Hi Madhu,
   I apologize for the misunderstanding. This is actually pretty straightforward to do in a coded step.
Here's what it looks like in C# code:
int x=  (int)(System.Convert.ChangeType(Data["x_Axis"], typeof(int)));
int y = (int)(System.Convert.ChangeType(Data["y_Axis"], typeof(int)));
ActiveBrowser.Manager.Desktop.Mouse.HoverOver(x, y);
This is a data-driven hover-over step. For my example I used an Excel file with two columns:
x_Axis and y_Axis
you can find the Excel file attached.

This code should get you started, let me know if you're having trouble with getting this to work properly!

All the best,
Stoich
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
Tags
General Discussions
Asked by
Madhu
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Madhu
Top achievements
Rank 1
Share this question
or