right click in protractor
问题 I'm trying to right click an element using protractor, the element is a cell in an ag-grid. I'm trying to use some of the earlier suggestions that I could find, the only one that didn't throw me an error was the following: browser.actions().mouseMove(elementVar).perform(); browser.actions().click(protractor.Button.RIGHT).perform(); although it doesn't right-click at all. Any suggestions? 回答1: From the webdriverJs api, you can right click an element thusly: browser.actions() .click($('.myElm')