这里是我的代码,请单击下面的错误在这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