最新回答 / weibo__赵小猫__03938600
可能跟eclipse的版本或者设置有关 还有个快捷键 在Eclipse里,写一个没有导入相应包的类名(这个类名已经完全写全,比如LayoutManager), 可以用ctrl+shift+M/Ctrl+Shift+o/Ctrl+1导入相应的包.
2017-06-24
最新回答 / 无名小卒_0002
有两种可能:1、你没有设置等待时间,页面还没有加载完成,测试程序就执行了,所以,找不到相应该的元素。建议在执行测试程序前,先设置一个合理的等待时间。2、有可能元素真的定位错了。
2017-06-23
最新回答 / 鱼鱼鱼鱼1220
driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS); 这句写在for循环上边试一下
2017-06-08
最新回答 / 慕勒4495694
package denglu;/** * 实现了从百度搜索慕课网-打开慕课网 */import static org.junit.Assert.*;import java.util.concurrent.TimeUnit;import org.junit.After;import org.junit.Before;import org.junit.Test;import org.openqa.selenium.By;import org.openqa.selenium.WebDriver;import o...
2017-06-04