【发布时间】:2021-11-23 03:02:43
【问题描述】:
HTML:
<input class="button" type="submit" value="Log In">
代码: 这是硒的代码。 WebDriverWait 等待 = new WebDriverWait(驱动程序, 10); WebElement element = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//input[@value='Log In']"))); driver.findElement(By.xpath("//input[@value='Log In']")).click();
我必须点击这个输入
【问题讨论】:
-
“以 500 毫秒间隔尝试 10 秒”的上下文是什么?我会从标题中移出这段文字,并用问题中的其他信息来澄清它。
-
请提供足够的代码,以便其他人更好地理解或重现问题。
标签: selenium selenium-webdriver selenium-chromedriver