I know that protractor click on element by default with left mouse button. How to do it to click with RIGHT MOUSE BUTTON ?
el.click('RIGHT');
?
I know that protractor click on element by default with left mouse button. How to do it to click with RIGHT MOUSE BUTTON ?
el.click('RIGHT');
?
Try this:
el.sendKeys(protractor.Key.RIGHT)
Here is the list of keys: https://code.google.com/p/selenium/source/browse/javascript/webdriver/key.js
If it doesn't work do this: https://groups.google.com/forum/#!topic/selenium-users/fF_Hcp40KO0
Let me know if it works
The accepted solution for this question isn't the best way to go about this. Browser actions'
.click()
method accepts an optional arg for clicking the right button. A better solution, from the webdriverJs api is:I would have done like this:
Based on what I saw in actionsequence.js and Protractor rightClick issue #280