My current challenge involves scraping data from the table of a specific F5 Article (). Sometimes, I am able to successfully extract the tables from the DOM, while other times, the JavaScript-generated tables are not being crawled. Despite my attempts with implicit and explicit waits, I have been unsuccessful in consistently accessing the table data. When using explicit wait, I encounter timeouts and cannot select the table as needed.
Do you have any suggestions on how to reliably retrieve the data within the tables? My current setup includes Java 8, Selenium 3.141.59, and ChromeDriver 85.0.4183.87.
driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);
WebDriverWait wait = new WebDriverWait(driver, 15);
WebElement element = wait
.until(ExpectedConditions.presenceOfElementLocated(By.cssSelector("table")));
Edit: I would prefer to utilize their API for this task, but unfortunately, it is not documented and therefore not an option for me.