這裏是我的代碼,請單擊下面的錯誤在這Website硒的webdriver:元素不可見異常
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class Reports {
public static void main(String[] args) {
WebDriver driver = new FirefoxDriver();
driver.get("https://platform.drawbrid.ge");
driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);
driver.findElement(By.xpath(".//*[@id='_loginButton']")).click();
}
}
我得到一個簡單的登錄按鈕:
Exception in thread "main" org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with Command duration or timeout: 2.05 seconds
我收到錯誤「org.openqa.selenium.ElementNotVisibleException:元素不可見」 需要幫助 – 2017-09-10 03:48:39
仍然同樣的問題: - 你可以請h請幫我一下嗎? http://www.kiryanaworld.com/ – 2017-09-10 13:57:51