Skip to content

Commit

Permalink
Fix import error and use correct driver for loadwait
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonrobertz committed Apr 12, 2020
1 parent 19e251d commit 31dea53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion autoscrape/backends/selenium/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def _wait_check(self, driver):
"""
logger.debug(" - Waiting for page to load (document.readyState)...")
script = "return document.readyState"
result = self._driver_exec(self.driver.execute_script, script)
result = driver.execute_script(script)
return result == "complete"

def _loadwait(self, fn, *args, **kwargs):
Expand Down
1 change: 1 addition & 0 deletions autoscrape/backends/selenium/dom.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: UTF-8 -*-
import logging
import re

try:
from selenium.common.exceptions import (
Expand Down

0 comments on commit 31dea53

Please sign in to comment.