I need to scroll the table to get table contents that are dynamically populated using selenium with java bindings and chrome driver. This is another scroll and not the window scroll itself. All the available solutions I could find are for the window scroll. What I need here is to scroll the table. I need to scroll the one highlighted
Please see the second screenshot for the page source Page Source Screenshot
Any help much appreciated.
I tried with the below code but it is not able to locate the element
WebElement scroll = driver.findElement(By.xpath("//*[@class='antiscroll-scrollbar antiscroll-scrollbar-vertical antiscroll-scrollbar-shown']"));
scroll.sendKeys(Keys.PAGE_DOWN);
I am getting the below error message
Error Message: No such element: Unable to locate element: {"method":"xpath","selector":"//*[@class='antiscroll-scrollbar antiscroll-scrollbar-vertical antiscroll-scrollbar-shown']"}
codeWebElement scroll = driver.findElement(By.xpath("//*[@class='antiscroll-scrollbar antiscroll-scrollbar-vertical antiscroll-scrollbar-shown']")); scroll.sendKeys(Keys.PAGE_DOWN); Error Message: No such element: Unable to locate element: {"method":"xpath","selector":"//*[@class='antiscroll-scrollbar antiscroll-scrollbar-vertical antiscroll-scrollbar-shown']"} Yes, it is not able to locate the element - john connor