on this link https://www.scoreboard.com/en/soccer/england/premier-league/results/ I click on button(link) "Show more matches" with Selenium and I want wait until function loads results. How to do it using selenium respectively this is my code
driver.findElement(By.linkText("Zobrazit více zápasů")).click();
Thread.sleep(1000);
and replace Thread.sleep(1000) with something that will wait until the function is over.