会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
悟空救我呀
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
3
4
5
6
7
8
下一页
2015年9月9日
dom4j解析xml作为测试数据
摘要: 构造函数:public AppTestData(File xmlFile) throws Exception { file = xmlFile; try { saxReader = new SAXReader(); saxRea...
阅读全文
posted @ 2015-09-09 11:07 悟空救我呀
阅读(311)
评论(0)
推荐(0)
2015年9月7日
Appium 切换上下文环境
摘要: Appium 切换上下文环境,代码如下: private void switchToContext(String sContext) { LogManager.getLogger(this.getClass()).info("Swith to Context: " + sCont...
阅读全文
posted @ 2015-09-07 14:10 悟空救我呀
阅读(1154)
评论(0)
推荐(0)
2015年8月6日
Selenium Grid 运行报错 Exception thrown in Navigator.Start first time ->Error forwarding the new session Empty pool of VM for setup Capabilities
摘要: Selenium Grid 运行报错 : Exception thrown in Navigator.Start first time ->Error forwarding the new session Empty pool of VM for setup Capabilities [{platf...
阅读全文
posted @ 2015-08-06 10:40 悟空救我呀
阅读(1821)
评论(0)
推荐(0)
2015年8月4日
An unknown server-side error occurred while processing the command.处理
摘要: 在调用resetAPP()时,报错:An unknown server-side error occurred while processing the command.怎么解决呢?请看:额,Appium 的windows UI版的不稳定,重新打开Appium 就行了。
阅读全文
posted @ 2015-08-04 13:37 悟空救我呀
阅读(11965)
评论(2)
推荐(1)
2015年6月24日
RemoteWebDriver管理
摘要: 直接贴代码: @Parameters({"BrowserType","NodeIP","NodePort"}) public void beforeTest(String sBrowserType, String nodeIP,String nodePort) th...
阅读全文
posted @ 2015-06-24 10:50 悟空救我呀
阅读(822)
评论(0)
推荐(0)
2015年6月16日
Selenium处理时间控件
摘要: Web网页的时间控件往往嵌入到一个iframe里,抓取页面元素时,总是失败? 不要慌,WebDriver已经有相应的处理方法了。driver.switchTo().frame(driver.findElement(By.id("id")));//返回到上个环境driver.switchTo().de...
阅读全文
posted @ 2015-06-16 16:13 悟空救我呀
阅读(280)
评论(0)
推荐(0)
Selenium解决页面元素不在视野范围内的问题
摘要: 当需要使用滚动条才能使页面元素显示在视野范围内时,必须用代码处理下,才能对其进行操作。处理其实也很简单,就是调用JS函数.driver.executeScript("arguments[0].scrollIntoView(false);", e);参数e 为WebElement 类型,方法execu...
阅读全文
posted @ 2015-06-16 15:46 悟空救我呀
阅读(1288)
评论(0)
推荐(0)
testng标签运行顺序
摘要: testng的annotations运行顺序为:@BeforeSuite@BeforeTest@BeforeClass@BeforeMethod@AfterMethod@AfterClass@AfterTest@AfterSuite如果测试用例父类 和子类同时有相同的标签,before遵循从外而内的...
阅读全文
posted @ 2015-06-16 10:25 悟空救我呀
阅读(533)
评论(0)
推荐(0)
2015年6月9日
WebDriver 在使用 CSS Selector 与 XPath 在查找元素时如何取舍
摘要: 开发在做Web系统时,用的是css div划分层,使用jQuery 选取元素。
阅读全文
posted @ 2015-06-09 14:49 悟空救我呀
阅读(174)
评论(0)
推荐(0)
dom4j如何解析xml
摘要: 简单解析自己定义的xml文件,首先,给解析xml文件的类来个构造方法: 1 public xmlData(File xmlFile) { 2 file = xmlFile; 3 try { 4 saxReader = new SAXReade...
阅读全文
posted @ 2015-06-09 14:44 悟空救我呀
阅读(287)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
下一页
公告