1 我正在使用selenium-webdriver for nodejs。如何模擬node.js selenium-webdriver中的右鍵單擊? 如何模擬右鍵單擊此驅動程序?我在官方文檔中找不到這個。 來源 2016-06-19 johndoek +0 在客戶端上點擊右鍵也被稱爲調用**上下文菜單**。一些文檔在這裏:https://www.seleniumeasy.com/selenium-tutorials/right-click-context-menu-webdriver-example – wmash
2 謝謝,wmash。你幫我找到解決方案。 答案(發現here): driver.actions().click(element1, input.Button.RIGHT).perform(); 來源 2016-06-20 18:36:55 johndoek
在客戶端上點擊右鍵也被稱爲調用**上下文菜單**。一些文檔在這裏:https://www.seleniumeasy.com/selenium-tutorials/right-click-context-menu-webdriver-example – wmash