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

后端 未结 3 1881
渐次进展
渐次进展 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:43

    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

提交回复
热议问题