Why is it giving me ElementNoVisibleException? I know the error says it is not visible. What change do I have to make the code work correctly? It is correct link.
Line 1 WebDriver driver = new FirefoxDriver(); Line 2 driver.manage().window().maximize(); Line 3 driver.get("http://bbc.com"); Line 4 driver.findElement(By.xpath("//*[@id='orb-nav-links']/ul/li[2]/a")).click();
Error message: Exception in thread "main" org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with Command duration or timeout: 167 milliseconds