鼠标事件。

常用的鼠标操作:

public void Action() {
Actions action = new Actions(driver);
//鼠标左击并提交
action.click().perform();
//鼠标右击并提交
action.contextClick().perform();
//鼠标双击并提交
action.doubleClick().perform();
//鼠标悬停并提交
action.moveToElement(null).perform();
}

posted @ 2020-10-18 10:09  一块  阅读(81)  评论(0编辑  收藏  举报