findElement報錯
報錯 Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"id","selector":"KW"} Command duration or timeout: 445 milliseconds 是什么原因呢
報錯 Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"id","selector":"KW"} Command duration or timeout: 445 milliseconds 是什么原因呢
2018-03-15
舉報
2018-03-26
貼html代碼看看,如果你是定位百度的輸入框,那只是因為id寫錯了,應該是driver.findElement(By.id("kw")),kw是英文字母小寫