I'm currently writing a Python program that automates a process for me on Google Chrome using Selenium. One of the buttons I have to press only appears when the mouse is hovering over it. Well, not necessarily the button itself, but the div that has the action in it appears when the mouse is hovering over it. The image for the button is always there. If anyone can help out, that'd be amazing. Thanks!
Asked
Active
Viewed 361 times
0

undetected Selenium
- 183,867
- 41
- 278
- 352

Hussein Esmail
- 353
- 5
- 21
-
Please share your code and URL or HTML in text format – Sers Jan 12 '20 at 08:42
1 Answers
0
You really don't need to select an element to invoke click()
on it. Rather you need to use find_element()
or one of the find_element_by_*()
methods to locate the desired element inducing WebDriverWait for the visibility_of_element_located()
to Mouse Hover over the element first.
Once the Tool Tip is clickable you can invoke click()
method.
You can find a detailed discussion in How to mouse hover a parent element and subsequently click on child element using Selenium and Action class

undetected Selenium
- 183,867
- 41
- 278
- 352