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

Execution on Chrome failing on Mousehover step

1 Answer 55 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Roger
Top achievements
Rank 1
Roger asked on 08 Jun 2016, 03:14 PM

Hi ,

My application has a list of kendo ui menu. I need to mouse hover on one of the main menu items to be able to view the submenu.

I have written a code to get this done and it get executed absolutely fine on IE.

But when executed on Chrome it mouse hovers on the above menu item in the list.

So I tried using offset values like shown in the below line of code.

 Menu2ndlevel.MouseHover(0,30,ArtOfTest.Common.OffsetReference.AbsoluteCenter)

By doing this, the execution happens fine in Chrome, but because of the offset set on IE it clicks on the below menu item.

Can you please help me with how to deal with this ?

 

-Regards,

Sprithi 

 

1 Answer, 1 is accepted

Sort by
0
Nikolay Petrov
Telerik team
answered on 09 Jun 2016, 03:12 PM
Hi Sprithi,

As a workaround for this issue you may perform a check - which one is the executing browser before applying the offset. This line of code will give the type of the browser.

ActiveBrowser.BrowserType;

Add to your code a simple check that verify the browser and than apply the offset if necessary.

The other way to complete this workaround is if you duplicate your coded step with the offset and to remove the offset from one of the steps. Than from the property of the step you have to set RunAgainst => to the browser you need to apply the step.

Let me know if that helps.

Regards,
Nikolay Petrov
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Roger
Top achievements
Rank 1
Answers by
Nikolay Petrov
Telerik team
Share this question
or