# How to handle Mouse over actions in Robot Framework

**URL:** <https://forum.robotframework.org/t/how-to-handle-mouse-over-actions-in-robot-framework/5493>\
**Category:** Robot Framework\
**Created:** [25 March 2023 10:37 UTC](https://forum.robotframework.org/t/how-to-handle-mouse-over-actions-in-robot-framework/5493 "2023-03-25T10:37:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chaitanya](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@Chaitanya](https://forum.robotframework.org/u/Chaitanya)\
**Post date:** [25 March 2023 10:37 UTC](https://forum.robotframework.org/t/how-to-handle-mouse-over-actions-in-robot-framework/5493/1 "2023-03-25T10:37:59Z")

</div>

I’m currently using Robot Framework with Browser Library and i see functions related to Mouse like

1. Mouse Button  
2.Mouse Move  
3.Mouse move relative to  
4.Mouse wheel

All are related with Mouse click operations

Anything for Mouse over and getting the text value on Mouse over?

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [25 March 2023 10:40 UTC](https://forum.robotframework.org/t/how-to-handle-mouse-over-actions-in-robot-framework/5493/2 "2023-03-25T10:40:03Z")

</div>

Hi Chaitanya,

Would [Hover](https://marketsquare.github.io/robotframework-browser/Browser.html#Hover) do what you want?

Dave.

---

<div class="post-metadata">

**Author:** ![René](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/ren%C3%A9/32/7_2.png) [@René](https://forum.robotframework.org/u/Ren%C3%A9)\
**Post date:** [25 March 2023 11:06 UTC](https://forum.robotframework.org/t/how-to-handle-mouse-over-actions-in-robot-framework/5493/4 "2023-03-25T11:06:09Z")

</div>

Why are all related to Click?

Only Mouse Button is related to a button operation.

But Mouse Move is based on Coordinates while Hover is based on a Selector

---

<div class="post-metadata">

**Author:** ![Chaitanya](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@Chaitanya](https://forum.robotframework.org/u/Chaitanya)\
**Post date:** [25 March 2023 11:20 UTC](https://forum.robotframework.org/t/how-to-handle-mouse-over-actions-in-robot-framework/5493/5 "2023-03-25T11:20:45Z")

</div>

Yes Damies.

I need to do Mouse over and on hovering wanted to read the value

---

<div class="post-metadata">

**Author:** ![Chaitanya](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@Chaitanya](https://forum.robotframework.org/u/Chaitanya)\
**Post date:** [25 March 2023 11:22 UTC](https://forum.robotframework.org/t/how-to-handle-mouse-over-actions-in-robot-framework/5493/6 "2023-03-25T11:22:44Z")

</div>

Also can you please provide an example for using the Mouse Hover function using Browser Library.

Tried searching the same and all the solutions are related to Selenium Libraray

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [25 March 2023 11:37 UTC](https://forum.robotframework.org/t/how-to-handle-mouse-over-actions-in-robot-framework/5493/7 "2023-03-25T11:37:34Z")

</div>

Hi Chaitanya,

FYI thekKeyword is just `Hover` not `Mouse Hover`, and the documentation in the [Hover](https://marketsquare.github.io/robotframework-browser/Browser.html#Hover) link I gave you has good examples.

Dave.

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [25 March 2023 14:45 UTC](https://forum.robotframework.org/t/how-to-handle-mouse-over-actions-in-robot-framework/5493/8 "2023-03-25T14:45:42Z")

</div>

Hi Chaitanya,

I just realised that you might trying to get the hover text, you actually don’t need to hover over the element to get that, it’s an attribute of the element, so you can simply use [Get Attribute](https://marketsquare.github.io/robotframework-browser/Browser.html#Get%20Attribute) to get the elements hover text. Depending on your application and the HTML tag, the hover text could a variety of attributes, some common ones are:

- alt (for images)
- title (for other elements)
- aria-label (for [newer HTML](https://www.w3.org/TR/dpub-aria-1.0/))

You’ll have to check the HTML of your app to find out which attributes were used

Dave.

---

<div class="post-metadata">

**Author:** ![Chaitanya](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@Chaitanya](https://forum.robotframework.org/u/Chaitanya)\
**Post date:** [26 March 2023 13:55 UTC](https://forum.robotframework.org/t/how-to-handle-mouse-over-actions-in-robot-framework/5493/9 "2023-03-26T13:55:14Z")

</div>

Thanks a Lot Damies13.

Your help is really appreciated!!!
