I am waiting for WebElement is clickable using below code:
WebDriverWait wait = new WebDriverWait(driver,9);
WebElement element = wait.until(ExpectedConditions.visibilityOf(CancelListingButton));
But I see the error for using ExpectedConditions
in eclipse as
ExpectedConditions cannot be resolved to a variable
I am using selenium 3.0 as maven project and included the import statement:
import org.openqa.selenium.support.ui.ExpectedConditions;
Is there any other dependency to use ExpectedConditions
?
pom.xml
dependencies included:
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.1</version>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.0.1</version>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-support</artifactId>
<version>2.0a7</version>
Mainly the issue is even after including the import statement:
import org.openqa.selenium.support.ui.ExpectedConditions;
I still cannot use ExpectedConditions
anywhere in my code as it gives me error to create a class ExpectedConditions
and it cannot be resolved to variable.