如何在selenium中点击右键而不使用javascript和fireevent?
我有一个上下文菜单,我想在硒测试中单击右键。我尝试使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用 selenium.contextMenu(定位器)
Use selenium.contextMenu(locator)
你试过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