随笔分类 -  selenium+java

摘要:driver.manage().window().maximize(); 阅读全文
posted @ 2015-12-29 11:12 dieyaxianju 阅读(1017) 评论(0) 推荐(0)
摘要:问题描述:通过调试可以看到控制台已经找到了起诉入口页面元素,可是点击“我是原告”没有反应了,也没有报错 解决办法:登录时是跳进了两层的iframe中,需要跳出iframe才能找到我是原告。 阅读全文
posted @ 2015-12-14 16:56 dieyaxianju 阅读(1086) 评论(0) 推荐(0)
摘要:一直找不到元素,是因为有两层iframe的找iFrame元素方法如下1.iFrame有ID 或者 name的情况//进入id="frame1"的frame中,定位id="div1"的div和id="input1"的输入框。dr.switchTo().frame("frame1");dr.findEl... 阅读全文
posted @ 2015-12-11 17:15 dieyaxianju 阅读(801) 评论(0) 推荐(0)
摘要:Selenium WebDriver的简单操作说明 http://blog.sina.com.cn/s/blog_611f50100100tbvh.html首页定位元素 http://blog.csdn.net/bwgang/article... 阅读全文
posted @ 2015-12-11 16:14 dieyaxianju 阅读(162) 评论(0) 推荐(0)
摘要:问题:解决办法: 阅读全文
posted @ 2015-12-09 22:17 dieyaxianju 阅读(1776) 评论(2) 推荐(0)
摘要:1.在Eclipse中引入JUnitjar文件2.右键Build Path>Configure Bulid Path3.Libraries>Add Library4.Junit>next5.JUnit library version>JUnit4 finish 阅读全文
posted @ 2015-12-09 21:26 dieyaxianju 阅读(313) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/xc5683/article/details/9629827 阅读全文
posted @ 2015-12-09 17:23 dieyaxianju 阅读(271) 评论(0) 推荐(0)
摘要:/*创建的类为junit class*/package Selenium_lassen;import static org.junit.Assert.*;import java.io.File;import org.junit.After;import org.junit.Before;import... 阅读全文
posted @ 2015-12-09 17:00 dieyaxianju 阅读(224) 评论(0) 推荐(0)
摘要:/*创建类的时候是TestNG Class*/package Selenium_lassen;import static org.junit.Assert.*;import java.util.concurrent.TimeUnit;import org.junit.After;import org... 阅读全文
posted @ 2015-12-09 16:55 dieyaxianju 阅读(601) 评论(0) 推荐(0)
摘要:http://www.blogjava.net/qileilove/archive/2014/12/11/421309.htmlselenium webdriver定位不到元素的五种原因及解决办法 1.动态id定位不到元素 for example: //WebElement xiexin_el... 阅读全文
posted @ 2015-12-04 11:02 dieyaxianju 阅读(1116) 评论(0) 推荐(0)
摘要:转:http://blog.csdn.net/jillliang/article/details/82064021.创建Fixfox web driver实例 WebDriver driver = new ForefoxDriver(); WebDriver driver = new Inter... 阅读全文
posted @ 2015-12-03 09:33 dieyaxianju 阅读(598) 评论(0) 推荐(0)
摘要:十二月 02, 2015 5:16:56 下午 org.openqa.selenium.os.ProcessUtils killWinProcess警告: Process refused to die after 10 seconds, and couldn't taskkill itjava.la... 阅读全文
posted @ 2015-12-02 19:46 dieyaxianju 阅读(1090) 评论(0) 推荐(0)
摘要:org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH. Make sure firefox is installed. OS appears to be: VISTABuild info: version... 阅读全文
posted @ 2015-12-02 17:03 dieyaxianju 阅读(3178) 评论(0) 推荐(0)
摘要:初步断定是内存方面的问题于是决定修改配置文件D:\study\eclipse\eclipse\eclipse.ini-startupplugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar--launcher.libraryplugins/... 阅读全文
posted @ 2015-12-02 14:02 dieyaxianju 阅读(1672) 评论(0) 推荐(0)
摘要:出现原因:拷贝下来的代码缺少{左大括号然后运行时run as 没有选到java application是因为没有main方法加个public static void main(String() args){}就可以了 阅读全文
posted @ 2015-12-02 13:55 dieyaxianju 阅读(456) 评论(0) 推荐(0)
摘要:问题一:The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files由于我在Eclipse引用不同版本JDK工程时会生该问题,我的开发环境中应用了多个版本的JD... 阅读全文
posted @ 2015-12-02 10:17 dieyaxianju 阅读(1187) 评论(0) 推荐(0)
摘要:转:http://blog.csdn.net/mao1059568684/article/details/17347853第一步 安装JDKJDk1.7.下载地址:http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloa... 阅读全文
posted @ 2015-12-01 16:27 dieyaxianju 阅读(382) 评论(0) 推荐(0)