滚动,直到特定点或元素可见页面

问题描述 投票:0回答:1

我有一个按钮,我使用click元素按下它。这是一个显示更多按钮。

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转到特定点或者是否有其他选项而不是点击?或者通常滚动直到元素可用?

selenium rselenium
1个回答
1
投票

尝试使用

remDr$mouseMoveToLocation(webElement = webElem)

webElem$clickElement()之前。如果元素webElem不在屏幕上,则无法单击它。您必须使用方法mouseMoveToLocation将其移动到视图中。

© www.soinside.com 2019 - 2024. All rights reserved.