滚动直到页面的特定点或元素可见
Scroll until a specific point or element will be visible of page
我有一个按钮,我使用点击元素来按下它。这是一个显示更多按钮。
webElem$clickElement()
但是在某些页面中,r selenium 给出了这个错误:
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>
我是否可以让 RSelenium 转到特定点,或者是否有除单击之外的其他选项?或者通常滚动直到元素可用?
尝试使用
remDr$mouseMoveToLocation(webElement = webElem)
在 webElem$clickElement()
之前。如果元素 webElem 不在屏幕上,则无法单击它。您必须使用 mouseMoveToLocation 方法将其移动到视图中。
我有一个按钮,我使用点击元素来按下它。这是一个显示更多按钮。
webElem$clickElement()
但是在某些页面中,r selenium 给出了这个错误:
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>
我是否可以让 RSelenium 转到特定点,或者是否有除单击之外的其他选项?或者通常滚动直到元素可用?
尝试使用
remDr$mouseMoveToLocation(webElement = webElem)
在 webElem$clickElement()
之前。如果元素 webElem 不在屏幕上,则无法单击它。您必须使用 mouseMoveToLocation 方法将其移动到视图中。