-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