Selenium 3.4: WebDriverWait - until changed: indirectly referenced from required class files.

1,970 views
Skip to first unread message

jonas traechslin

unread,
May 3, 2017, 6:51:03 AM5/3/17
to webdriver
Hi,

I recently wanted to change from Selenium 3.01 to 3.4.
However, the method until from the WebDriverWait causes me problems. It claims:

The type com.google.common.base.Function cannot be resolved. It is indirectly referenced from required .class files


These are the imported libraries:
import org.openqa.selenium.ElementNotVisibleException;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.TimeoutException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebDriverException;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;


This is my statement:
WebDriverWait wait = new WebDriverWait(driver,waitForDoneTimeout);
wait.until(ExpectedConditions.invisibilityOfElementLocated(By.cssSelector("img[src*='img/busy.gif']")));

Can anybody help me?

Jonas

Simon Stewart

unread,
May 3, 2017, 9:25:54 AM5/3/17
to webdriver
Update guava to version 21 or higher.

Simon

--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+unsubscribe@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at https://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/d/optout.

jonas traechslin

unread,
May 8, 2017, 9:01:56 AM5/8/17
to webdriver
Thank you! This worked.
Jonas
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages