最新回答 / 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