views:

19

answers:

1

I'm testing a jtree made in zope that needs to be clicked with right_click, i know that the command for left click with selenium in python is selenium.click ,but i don't know any for right_click ,can anyone help me please. i would love to know if there is a solution in python not another languages please.

A: 

This was already answered, use JavaScript - http://stackoverflow.com/questions/433919/javascript-simulate-right-click-through-code

ZloiAdun
you think it could work in python too?
decebal
That's a JavaScript, you can call JavaScript from Python. You can add that into your user-extentions.js and the call from your code, please refer to the Selenium docs - http://seleniumhq.org/docs/08_user_extensions.html
ZloiAdun