I'm parsing the website "https://www.diretta.it"
with Selenium library.
When I try to click a link after another click, there is no results.
This is the Code:
public static void main(String[] args)
{
String url = "https://www.diretta.it/serie-a-2016-2017/";
// System Property for Chrome Driver
System.setProperty("webdriver.chrome.driver","C:\\..\\chromedriver_win32\\chromedriver.exe");
// Instantiate a ChromeDriver class.
WebDriver driver=new ChromeDriver();
driver.manage().window().maximize();
driver.get(url);
driver.findElement(By.xpath("//a[@href='/serie-a-2016-2017/risultati/']")).click();
try
{
Thread.sleep(3000); // 3 secondi
}
catch (InterruptedException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
This part of the code is as if it were not executed
WebElement element = driver.findElement(By.xpath("//a[@class='event__more event__more--static']"));
Actions actions = new Actions(driver);
actions.moveToElement(element).click().build().perform();
}
This is the link that I would to click: