How can I emulate right-click in the node.js selenium-webdriver?

后端 未结 1 1466
悲&欢浪女
悲&欢浪女 2021-01-25 02:03

I am using selenium-webdriver for nodejs.

How can I emulate a right-click with this driver? I can\'t find this in the official documentation.

相关标签:
1条回答
  • 2021-01-25 02:34

    Thanks, wmash. You help me found solution.

    Answer (found here):

    driver.actions().click(element1, input.Button.RIGHT).perform();
    
    0 讨论(0)
提交回复
热议问题