Protractor - does anybody know how to click on element with RIGHT MOUSE BUTTON?

后端 未结 3 1844
渐次进展
渐次进展 2021-02-06 07:29

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\'); ?

3条回答
  •  逝去的感伤
    2021-02-06 07:32

    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

提交回复
热议问题