Closed jayanaidu33 closed 5 years ago
1) Where is WebDriver Implemented? - read the google doc in day 4 have added the explaination. 2) did you resolved the error on the wait command- The method visibilityOfElementLocated(By) in the type ExpectedConditions is not applicable for the arguments (WebElement) 3) Read and understand the class of Expected Conditions
The below script is not working
package day4;
import java.util.concurrent.TimeUnit; import java.util.function.Function;
import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.interactions.Actions; import org.openqa.selenium.support.ui.Clock; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait;
public class Selenium30 {
}
It says Cast Arguement1 to By.
Even after Casting I am getting below error
Exception in thread "main" java.lang.ClassCastException: org.openqa.selenium.remote.RemoteWebElement cannot be cast to org.openqa.selenium.By at day4.Selenium30.main(Selenium30.java:31)