Skip to main content
2 of 2
added 7 characters in body
João Farias
  • 11k
  • 2
  • 20
  • 40

Let`s debug that situation to know its root cause of this Exception. IMO before emitting scrollTo or make any waits. Looks like the algorithm of selenium click is:

  1. Calculate element position
  2. ScrollTo this position (so you don't need to issue it yourself)
  3. Click to this position (exception comes from last assertion which checks what element stands on this position just before actual click event sending)

My advices are:

  1. Check if element is inside your viewport.
  2. Check if element is covered by any other (like sticky menus), hide them if there are any, or scroll manually before click without relying on builtin scrollTo.

Also some of these group discussion might helps you: