上一页 1 ··· 4 5 6 7 8
摘要: 单键 组合键 单键 /** * 模拟键盘回车事件 * @throws AWTException */ public void KeyEventEnter() throws AWTException { Robot robot = new Robot(); robot.keyPress(KeyEven 阅读全文
posted @ 2017-08-23 17:26 爱吃橙子 阅读(468) 评论(0) 推荐(0) 编辑
摘要: 首先先看一下什么是富文本编辑框 HTML源码 思路:首先先进入到iframe中,再用js写,最后切出iframe 如果想要换行可以在换行的地方加上<br> 如果添加的文本中包含单引号、双引号使用转义字符 阅读全文
posted @ 2017-08-11 17:15 爱吃橙子 阅读(677) 评论(0) 推荐(0) 编辑
摘要: 在定位单个元素时,selenium-webdriver 提示了如下一些方法对元素进行定位。下面这些定位方式中,优先使用 id、name、classname,对于网上的链接元素,推荐使用linkText 定位方式,对于不好定位的元素,考虑使用火狐的插件去辅助定位(xpath)。 1. 当页面元素有id 阅读全文
posted @ 2017-08-10 09:52 爱吃橙子 阅读(291) 评论(0) 推荐(0) 编辑
摘要: String字符串转int类型 int类型转string字符串 阅读全文
posted @ 2017-08-09 11:20 爱吃橙子 阅读(212) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-08-07 10:04 爱吃橙子 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 十二月 02, 2015 5:16:56 下午 org.openqa.selenium.os.ProcessUtils killWinProcess 警告: Process refused to die after 10 seconds, and couldn't taskkill it java. 阅读全文
posted @ 2017-08-04 14:04 爱吃橙子 阅读(807) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8