webdriver 键盘模拟事件

时间:2014-05-24 00:52:48   收藏:0   阅读:245

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

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!