单击坐标而不识别元素 [英] Clicking at coordinates without identifying element

查看:29
本文介绍了单击坐标而不识别元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为登录功能的 Selenium 测试的一部分,我想通过识别按钮的坐标并指示 Selenium 单击这些坐标来单击按钮.这将在不识别元素本身的情况下完成(通过 id、xpath 等).

As part of my Selenium test for a login function, I would like to click a button by identifying its coordinates and instructing Selenium to click at those coordinates. This would be done without identifying the element itself (via id, xpath, etc).

我知道还有其他更有效的方法来运行点击命令,但我希望专门使用这种方法来最好地匹配用户体验.谢谢.

I understand there are other more efficient ways to run a click command, but I'm looking to specifically use this approach to best match the user experience. Thanks.

推荐答案

Selenium 不会让你这样做.

Selenium won't let you do this.

这篇关于单击坐标而不识别元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆