webdriver 键盘模拟事件
2020-12-13 05:26
标签:class blog c code java a ctrl + element webdriver 键盘模拟事件,搜素材,soscw.com webdriver 键盘模拟事件 标签:class blog c code java a 原文地址:http://www.cnblogs.com/joewu/p/3736889.html
public
void
ctrl(String element){
Actions action=
new
Actions(driver);
driver.findElement(By.xpath(element)).click();
action.sendKeys(Keys.CONTROL).perform();
}