简体   繁体   English

如何在硒中单击右键不使用javascript和fireevent?

[英]How to clickRight in selenium dont use javascript and fireevent?

I have one contextmenu and i want to clickRight in selenium test. 我有一个contextmenu,我想在硒测试中单击right。 i try to use fireEvent but im failed. 我尝试使用fireEvent,但即时通讯失败。 and i dont know java script. 而且我不知道Java脚本。 So how to do clikright in selenium. 那么如何在硒中做Clikright。

thanks 谢谢

使用selenium.contextMenu(locator)

Have you tried the recording feature of the ide? 您是否尝试过使用ide的录制功能? What code does it produce? 它产生什么代码?

Search the forum and you find: Selenium IDE - record right click 搜索论坛,您会发现: Selenium IDE-记录右键

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM