最新回答 / weibo__趙小貓__03938600
可能跟eclipse的版本或者設(shè)置有關(guān) ? ? 還有個(gè)快捷鍵??在Eclipse里,寫一個(gè)沒有導(dǎo)入相應(yīng)包的類名(這個(gè)類名已經(jīng)完全寫全,比如LayoutManager),?可以用ctrl+shift+M/Ctrl+Shift+o/Ctrl+1導(dǎo)入相應(yīng)的包.
2017-06-24
最新回答 / 無名小卒_0002
有兩種可能:1、你沒有設(shè)置等待時(shí)間,頁面還沒有加載完成,測試程序就執(zhí)行了,所以,找不到相應(yīng)該的元素。建議在執(zhí)行測試程序前,先設(shè)置一個(gè)合理的等待時(shí)間。2、有可能元素真的定位錯(cuò)了。
2017-06-23
最新回答 / 魚魚魚魚1220
driver.manage().timeouts().implicitlyWait(2,?TimeUnit.SECONDS);??這句寫在for循環(huán)上邊試一下
2017-06-08
最新回答 / 慕勒4495694
package denglu;/**?* 實(shí)現(xiàn)了從百度搜索慕課網(wǎng)-打開慕課網(wǎng)?*/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