Reputation: 181
I have a button which I use the click element to press it. It is a show more button.
webElem$clickElement()
However in some pages the r selenium gives this error:
Selenium message:unknown error: Element <button class = "mybutton">...</button> is not clickable at point (462, 24). Other element would receive the click: <div id="etype">...</div>
Is there any idea if I can make RSelenium go to the specific point or if there is another option than click? Or generally scroll until the element is available?
Upvotes: 1
Views: 460
Reputation: 9313
Try using
remDr$mouseMoveToLocation(webElement = webElem)
before webElem$clickElement()
. If the element webElem is not on screen you can't click on it. You must move it into view with the method mouseMoveToLocation.
Upvotes: 2