如何在selenium中点击右键而不使用javascript和fireevent?

发布于 2024-12-06 14:22:43 字数 102 浏览 6 评论 0原文

我有一个上下文菜单,我想在硒测试中单击右键。我尝试使用 fireEvent 但我失败了。而且我不知道java脚本。那么如何在selenium中进行clikright呢?

谢谢

I have one contextmenu and i want to clickRight in selenium test. i try to use
fireEvent but i m failed. and i dont know java script. So how to do clikright in selenium.

thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

心欲静而疯不止 2024-12-13 14:22:44

使用 selenium.contextMenu(定位器)

Use selenium.contextMenu(locator)

后eg是否自 2024-12-13 14:22:44

你试过ide的录音功能吗?它产生什么代码?

搜索一下论坛,发现:
Selenium IDE - 记录右键单击

Have you tried the recording feature of the ide? What code does it produce?

Search the forum and you find:
Selenium IDE - record right click

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文