Selenium error message “selenium.webdriver has no attribute execute script”
问题 I am using selenium to scrape an infinite scrolling page. I am trying to use this code: import time import pandas as np import numpy as np from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By browser = webdriver.Chrome() url = 'https://twitter.com/search?f=tweets&q=csubwaystats%20since%3A2018-05-28%20until%3A2018-08-28' browser.get(url) time.sleep(1) SCROLL_PAUSE_TIME = 0.5 # Get scroll height last_height = webdriver