Protractor - does anybody know how to click on element with RIGHT MOUSE BUTTON?
问题 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'); ? 回答1: I would have done like this: browser.actions().mouseMove(el.find()).perform(); browser.actions().click(protractor.Button.RIGHT).perform(); Based on what I saw in actionsequence.js and Protractor rightClick issue #280 回答2: The accepted solution for this question isn't the best way to go about this. Browser actions' .click() method accepts an