On the page that I am parsing, a dialog box appears that is labelled '.isgrP' and I need it to scroll down and through the list that appears in order to continue. I searched through stackoverflow for solutions and the closest one that I came up with was this:
WebDriverWait(driver, 10).until(lambda d: d.find_element_by_css_selector('div[role="dialog"]'))
driver.execute_script('''
var fDialog = document.querySelector('div[role="dialog"] .isgrP');
fDialog.scrollTop = fDialog.scrollHeight
''')
I believe this solution that I came across uses Java as opposed to just selenium or python. The issue with this code is that it scrolls too quickly and is detected to be a bot so the page no longer loads. I am wondering if there is anyway to lower the scroll speed or make it mimic a human's scroll speed?