search cancel

How do I use the Selenium command mouseOver and clickAt?

book

Article ID: 254848

calendar_today

Updated On:

Products

AppNeta

Issue/Introduction

In some of your workflows, you may have troubles selecting a particular link or element on a web page.  This can cause some scripts to cease to function and result in errors.  A good workaround to the issue is to use mouseOver command and pair this command with a clickAt:

https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=3p1AfuL5wmFSUZK3GScgYw==

Environment

AppNeta Selenium Script workflow.

Resolution

Consider a very basic workflow:

 

1.  We'll open the Broadcom Support Portal
2.  Pause for 500 ms
3.  mouseOver to the Brocade Education link
4.  Pause again for 500 ms
5.  mouseOver the Customer Support Portal
6.  Using the clickAt 0,0 command, we are able to click on the place our mouse is hovering.

So instead of clicking on the normal link, instead this serves as a workaround to navigate to the next page, by hovering on an item with mouseOver, and then clicking at the hover point, to advance to the next portion of the script.


This is valuable if the click you are attempting to access can not be selected for whatever reaseon.

 



Attachments