代码解析:1、读取xml数据SAXReader可以通过多种方式读取xml数据,并返回Document格式的对象。通过查看源码,可以看出read()方法接收File,InputStream和URL等格式的参数来读取相应的xml数据。读取xml文档和xml格式的字符串两种方式。当然,字符串要根据相应的编 Read More
posted @ 2018-10-23 22:45 Shadow.Yin Views(2486) Comments(0) Diggs(0) Edit
目的:从Excel中获取列的值,传输到页面 技巧:尽可能的提高方法的重用率 Java包: 1.java.core包 3个类:1)日志(LogEventListener)扩展web driver自带的事件监听器 2)时间等待,浏览器打开、关闭(BasicCase):BasicCase类中包含一个静态内 Read More
posted @ 2018-10-23 20:18 Shadow.Yin Views(462) Comments(0) Diggs(0) Edit
1.找不到元素:查看是否有【frame】或者【iframe】元素 2.click无响应:1)使用sendkeys(Keys.Enter) 还是无响应:使用js定位 3.弹框处理: 确认:switchto().alert().accpet(); 取消:switchto().alert().dismis Read More
posted @ 2018-10-23 14:14 Shadow.Yin Views(1476) Comments(0) Diggs(0) Edit
1.进入 如果安装的war包,路劲如下: C:\Users\LENOVO\.jenkins\ 2. 1)方式一: 打开config.xml ->将useSecurity设置为false 2)方式二:删除config.xml中的一段 <useSecurity>true</useSecurity><au Read More
posted @ 2018-10-23 13:35 Shadow.Yin Views(11099) Comments(0) Diggs(0) Edit