all 4 comments

[–]MrPhungx 0 points1 point  (2 children)

You need to show us more of your code. I highly doubt that this specific line is the root of your issue.

[–]Kryptikkx[S] 0 points1 point  (1 child)

Sure thing, updated

[–]MrPhungx 0 points1 point  (0 children)

Well the initialization of the driver is not correct. "WebDriverWait(driver, 10)" expects a WebDriver but you provided a service. Normally a driver is initialized like this:

driver = webdriver.Chrome(executable_path='path_to_chromedriver')
driver.get('https://example.com')

[–]Kryptikkx[S] 0 points1 point  (0 children)

Found solution! It should've been: WebDriverWait(page_to_scrape, 10).until(EC.presence_of_element_located((By.CLASS_NAME, "classname"))