WebDriver fails to find the element which is not visible in browser's visible area.In order to make the WebElement viewable by WebDriver, We need to make that element to visible in browser's view to do scroll down on particular div! I tried lot, doesn't helped me. Hence its still not working at all . Kindly advise
My Code :
((JavascriptExecutor)driver).executeScript("arguments[0].scrollIntoView();", driver.findElement(By.xpath("//*[@id='lobbyMain']/div[3]/div[2]/ul/li[1]/div[1]/h3/a"))).onclick;