如何解决如果页脚固定,则机器人框架“将元素滚动到视图中”不起作用
我正在使用SeleniumLibrary使用RobotFramework编写UI自动化。
如下图所示,固定页脚后面隐藏着一个按钮。我想使用Robot Framework单击该按钮。我尝试了Scroll Element Into View <button_locator>
,但抛出异常。
ElementClickInterceptedException: Message: element click intercepted: Element <a class="zoom-out" href="#" title="Zoom out" role="button" aria-label="Zoom out">...</a> is not clickable at point (1328,656). Other element would receive the click: <div class="footer-actions layout-align-end-center layout-row flex-1" flex="1" layout="row" layout-align="end center">...</div>
有人可以帮我解决这个问题。
解决方法
Press Key xpath=//body \ue00f # this is the Page Down key
如有必要,重复2次 更多信息?此处:Robot Framework using Python,key press without selecting any button or element in the page
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。