-1
我使用这个代码,点击一个按钮需要双击网页上的按钮,而使用硒的webdriver
driver.findElement(By.linkText("Sign up")).click();
我试着使用:
new WebDriverWait(driver,30).until(ExpectedConditions.elementToBeClickable(By.linkText("Sign up")))
,但它没有工作。
给我发[硒的webdriver的URL – iamsankalp89
可能的复制Java代码使用网络驱动程序双击网格中的记录](https://stackoverflow.com/questions/21907007/selenium-webdriver-java-code-using-web-driver-for-double-click-a-record -in-A-GRI ) – JeffC
你的代码在哪里尝试双击?您只需等待某个元素可点击,但不要点击该元素。 – JeffC