cant clck on a buttoun

2 Answer(s)

Some other element is over the element you are trying to click. A Javascript action will be much better in this case.


Virender Singh Professor Answered on August 16, 2016.
Add Comment

Had the same issue.  When seleniun clicks on a element it scrolls the element to the top of the page.  If you have a floating header this causes issues as you have seen.  I solved this by changing the scoll behavior capability of the webdriver.

DesiredCapabilities capabilities = DesiredCapabilities.firefox();
capabilities.setCapability(CapabilityType.ELEMENT_SCROLL_BEHAVIOR, ElementScrollBehavior.BOTTOM);

jasonw Train Answered on August 31, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.