Need to move mouse off the main window so a popup invokes

How to apply eValid to functional testing of web applications.

Need to move mouse off the main window so a popup invokes

Postby ChrisH » Fri Mar 02, 2018 5:52 pm

Evening.

Sorry late post Happy Friday!

I need to move the mouse off the main window so a popup will be invoked.

I've tried using actions and JavaScript, but no joy.

Can you help me please.

Thanks
ChrisH
 
Posts: 1
Joined: Fri Mar 02, 2018 5:48 pm

Re: Need to move mouse off the main window so a popup invoke

Postby eValid » Mon Mar 05, 2018 11:12 am

ChrisH wrote:Evening.

Sorry late post Happy Friday!

I need to move the mouse off the main window so a popup will be invoked.

I've tried using actions and JavaScript, but no joy.

Can you help me please.

Thanks


This is a good question...one that we have not heard before ChrisH.

Indeed, there are some "autonomous JavaScript" actions that only happen when the mouse is NOT on a particular area.

Fortunately, eValid has two kinds of mouse-move command groups that will help you out.

(1) The commands: clMouseOver and xyMouseOver will position the mouse, in a specified window, at the given client (cl) or screen coordinate (xy) location that you specify.

All you need to do is to choose a location that is NOT on the area of choice and...there you go.

(2) The command groups: ElementMouse[Down/Out/Over/Up] and IndexElementMouse[Down/Out/Over/Up] will do this for you for all of the mouse-states like Down, Out, Over, and Up.

(There are four commands in each group.)

The trick here is that you have to know WHERE you want the mouse to be located.

In the case of the second command, you may have to learn a particular DOM index over which you want the mouse to be -- so that it is NOT in the are where its non-presence
will signal a JavaScript action.

This is tricky stuff.

Good luck and contact us if this doesn't work out for you.


-- eValid Support
eValid
 
Posts: 1821
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to Desktop and Mobile Device Functional Testing

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons