private void ParsingNextPage(int i, WebDriverWait wait) { _driver.Clicker($"//a[ contains(@href, 'pageNumber')][. = '{i}']"); Thread.Sleep(3000); _driver.SwitchTo().DefaultContent(); wait.Until(dr => dr.FindElement(By.XPath( "//ul[@class = 'posts']/li"))); ParsingList(); }