selenium執行滑鼠右鍵單擊一次【node.js版本】
selenium執行滑鼠右鍵單擊一次
來源【51dali資料分享網】
方法一:
第一步:const actions = driver.actions();
第二步:actions.contextClick(element) .perform()記得一定要加.perform()
方法二
driver.actions().mouseMove(el).click(Button.RIGHT).perform()
完整node.js+selenum的api請訪問:http://www.51dali.cn/zidonghuaceshiwenzhang/47.html