【问题标题】:Scroll until a specific point or element will be visible of page滚动直到页面上可以看到特定点或元素
【发布时间】:2018-02-25 22:45:43
【问题描述】:

我有一个按钮,我使用 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】:

尝试使用

remDr$mouseMoveToLocation(webElement = webElem)

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

【讨论】:

    猜你喜欢
    • 2013-07-17
    • 2013-06-15
    • 1970-01-01
    • 2021-12-26
    • 1970-01-01
    • 1970-01-01
    • 2010-11-27
    • 1970-01-01
    相关资源
    最近更新 更多