Actions 动作集
2015-06-15 15:09
211 查看
--> 移动鼠标到指定位置(先触发onMouseOver动作)
Actions action = new Actions(driver);
WebElement theRow = page.getInvisibleElement();
action.moveToElement(theRow).perform();
page.getInvisibleElement().click();
--> Ctrl + LeftClick(组合动作)
Actions action = new Actions(driver);
action.keyDown(Keys.CONTROL).perform();
input.click();// WebElement
action.keyUp(Keys.CONTROL).perform();
Actions action = new Actions(driver);
WebElement theRow = page.getInvisibleElement();
action.moveToElement(theRow).perform();
page.getInvisibleElement().click();
--> Ctrl + LeftClick(组合动作)
Actions action = new Actions(driver);
action.keyDown(Keys.CONTROL).perform();
input.click();// WebElement
action.keyUp(Keys.CONTROL).perform();
相关文章推荐
- 前端调试技巧
- 数据结构实验(一)——顺序表和单链表的设计与实现
- WIN7 IIS7.5web部署.NET项目遇到的问题
- expect error invalid command name
- JDK自带的动态代理Proxy类和InvocationHandler接口
- AFNetworking 上传文件
- 大小端问题2
- Yii中relations里配置和一些个人经验
- 修正CGBitmapContextCreate iOS8上的错误
- Linux云服务器安装JDK步骤
- Servlet--HttpServletRequest接口,HttpServletResponse接口
- Android自定义View的实现方法,带你一步步深入了解View(四)
- 一只在读iOS菜鸟十个月来从零基础到拿到实习Offer的总结
- Servlet--HttpServletRequest接口,HttpServletResponse接口
- java web程序中项目名的更改(http://localhost:8080/)后面的名字
- 《大道至简---软件工程实践者的思想》阅读笔记三
- 返回顶部代码!
- python备份mysql脚本
- STL源码分析之__type_traits
- 机器令砍菜刀