0

Currently using selenium in java and trying to locate an element and click. It gives the error saying that the element is unclickable at point (x,y), Other element would receive click:

However is the element I wanted it to click...

Any help is appreciated.

jaesanx
  • 195
  • 1
  • 13

1 Answers1

0

Sometimes the standard .click() doesn't work. I would recommend utilizing the OpenQA.Interactions.Actions class.

Actions action = new Actions(driver);
action.MoveToElement(element).perform();
action.click().perform();

This should execute the click at the given spot that you said the element exists.

mutt
  • 783
  • 1
  • 7
  • 11
  • Tried that too but had same error. Workaround I found was clicking on the element with an x,y offset. – jaesanx Aug 11 '14 at 20:28
  • Did you use Action class for x,y offset? Else, using the co-ordinates might cause issue when you run the test against different screen resolutions. – Sham Aug 12 '14 at 05:52