How to use mouseDownRight command?

In my test , I want to move mouse to somewhere and click mouse rightKey .
anyone can tell me how to do ?


Hi @suker123456

There’s a command called contextMenu which should open up the context menu (same effect as right-clicking on an element). Please try to see if it works.

Thanks a lot for your reply!

I run command as follow:
Target:xpath=(.//*[normalize-space(text()) and normalize-space(.)=‘Data Channel’])[1]/following::span[2]

but I can not see a sub menu be popped after run it.


It seems that the context menu are browser features rather than the feature of a web page. Can you describe what you’re trying to do, perhaps there’s another way.

maybe as your said, I have a test case that hope to move mouse to the top of one element and click mouse right key to pop a submenu , next do some action eg. click this submenu.