I am trying to parse Upwork with Selenium and getting exception
Exception in thread "main" org.openqa.selenium.ElementNotVisibleException:
And I don't uderstand why. I try click on h2 element that contains link, on link itself, but get still same exception. I check styles of this element in development tools ant this element are visible.
I try use ExpectedConditions and wait until elements became visible, but get timeout exception. What did I do wrong and how I can click on this link?
Of course i can just use uri and open it, but i want solve problem with click.
System.setProperty("webdriver.gecko.driver", "/usr/local/bin/geckodriver");
WebDriver driver = new FirefoxDriver();
driver.get("https://www.upwork.com/o/jobs/browse/");
List<WebElement> titles = driver.findElements(By.className("job-title"));
for (WebElement title: titles) {
System.out.println("text: " + title.getAttribute("innerText"));
System.out.println("tag: " + title.getTagName());
title.click();
driver.navigate().back();
}