Em meu teste de Login aparece a mensagem "java: incompatible types: int cannot be converted to java.time.Duration"

Viewed 47

I'm very new to programming and I'm trying to insert WebDriverWait into my login test code, to improve my code's implicit timing:

    WebDriverWait wait = new WebDriverWait(browser, 60);
    WebElement element = wait.until(ExpectedConditions.elementToBeClickable(By.id("someid")));

After running the test, the following message appears in the terminal:

    48:59
    java: incompatible types: int cannot be converted to java.time.Duration

What should I do to be able to run my test, after the message above?

0 Answers
Related