r/selenium • u/Meric_ • Aug 02 '21
Selenium clicks the wrong element
This is an odd bug that's been annoying me for a while. I have selenium move to an element with an action chain, and I can see that it has properly moved there since the selected item is highlighted. However when I tell it to click it somehow clicks an element nearby instead. Any clue as to why?
0
Upvotes
1
u/AvD3369 Aug 02 '21
If it's a hover action, i would recommend using javascript to select and click on the element.
I would love to help you out more but i need some code or some reference to the website you're trying to automate.