
selenium
文章平均质量分 55
蜕变之痛
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
xpat 说明及实例
示例Xml: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 xml version="1.0" encoding="utf-8" ?> pets> cat color="bl转载 2015-08-27 14:08:04 · 604 阅读 · 0 评论 -
webDriver入门 selenium 基础知识与实例
1.打开一个测试浏览器 对浏览器进行操作首先需要打开一个浏览器,接下来才能对浏览器进行操作。 Java代码 import java.io.File; import org.openqa.selenium.WebDriver; importorg.openqa.selenium.firefox.FirefoxBinary; importorg.openqa.seleniu转载 2015-08-28 14:10:34 · 2002 阅读 · 0 评论 -
selenium webDriver 鼠标操作
之前网上查资料都是 action2.click(); 经测试不行的。最后发现action2.click().perform(); 才有效。至于为什么目前还不清楚,但至少会用了。现在就把我的代码copy过来: 代码示例: //只有对象是visible时才可以操作,所以要等待状态变为visible WebElement mC = driver.findElement(By.xpath("原创 2015-08-29 15:07:23 · 940 阅读 · 0 评论 -
selenium webDriver: Element is not currently visible and so may not be interacted with
针对这个问题说下我个人的经验: 1、在选择下拉列表时出现过,因个人失误导致。 ---A、用命令一展开了下拉菜单; ---B、用命令二展开下拉菜单,然后选择; ---C、此时总是报错 Element is not currently visible。。。 ---D、因为点击了2次,菜单又收回去了,所以菜单项是不可以选择的; 2、我想关闭浏览弹出的小窗口,总是报这错误:原创 2015-08-28 19:14:09 · 1442 阅读 · 0 评论 -
web driver selenium 操作滚动条
//方法一: //1、操作垂直滚动条,向下移动500像素 String setscroll = "document.documentElement.scrollTop=" + "500"; //2、水平滚动条,向右移动500像素 //String setscroll = "document.documentElement.scrollLeft=" + "500"原创 2015-10-10 12:55:14 · 7146 阅读 · 0 评论 -
在jsp页面中运行vbs
功能说明:通过URL调用这个页面,这个页面会运行vbs,然后在页面中显示“This is my JSP page” 以下为脚本(已调试通过): String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+reques原创 2015-10-15 08:54:24 · 1273 阅读 · 0 评论