0

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!

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
Hussein Esmail
  • 353
  • 5
  • 21

1 Answers1

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