ctrl + element
1
2
3
4
5
6
7
8
9 |
public void ctrl(String element){ Actions action= new
Actions(driver); driver.findElement(By.xpath(element)).click(); action.sendKeys(Keys.CONTROL).perform(); } |
webdriver 键盘模拟事件,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/joewu/p/3736889.html