I wanted to access the element with text as Deprecated within "http://demo.guru99.com/selenium/deprecated.html" link in selenium in chrome browser
WebDriverWait wait = new WebDriverWait(driver, 10);
wait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(driver.findElement(By.name("classFrame"))));
driver.switchTo().frame("classFrame");
I have used the above code but I am getting error. How do I do it?