简体   繁体   中英

How to act on the right-click menu in Java Selenium?

I'm performing a right-click operation, but I can't click anywhere in the popup menu. What code can I do this with? I am using chromedriver

Your best bet is to use keyboard navigation through the menu. Use the down arrow key to go down as many times as needed and then the return key to choose the item you want to activate.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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