私はSeleniumの初心者で、いくつかのコードを実行しようとしています。 Utils.javaファイルで以下の関数を明示的に使用します。 エラー:ExpectedConditions型のメソッドelementToBeClickable(By)が引数(WebElement)に適用されません
public static void waitForElement(WebElement element){
WebDriverWait wait = new WebDriverWait(driver, 10);
wait.until(ExpectedConditions.elementToBeClickable(element));
}
私はそれがエラーを与えるコンパイル
: -The method elementToBeClickable(By) in the type ExpectedConditions is not applicable for the arguments (WebElement)
「** ExpectedConditions **」のelementToBeClickable(** By **)メソッドを強調しましょう。 JavaSocに行き、 'ExpectedConditions.elementToBeClickable'が期待するパラメータの種類を調べます。言い換えれば、Read That F ... ine Manual。 –
この例外は[[ExpectedConditions.elementToBeClickable() '](https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/support/ui/ExpectedConditions.html# elementToBeClickable-org.openqa.selenium.WebElement-)も 'WebElement'を受け取ります?? –
あなたはどのバージョンのセレンを使用していますか? –