Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Handling: selenium.common.exceptions.JavascriptException: Message: TypeError: document.body is null #5

Open
sharedphysics opened this issue Dec 22, 2020 · 0 comments

Comments

@sharedphysics
Copy link
Owner

Issue report:

  -- New folder created for this domain
Traceback (most recent call last):
  File "crawwwly-selenium.py", line 35, in <module>
    save_screenshot(driver, out_path)  # Saving the screenshot
  File "crawwwly-selenium.py", line 12, in save_screenshot
    required_width = driver.execute_script('return document.body.parentNode.scrollWidth')
  File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 634, in execute_script
    return self.execute(command, {
  File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.JavascriptException: Message: TypeError: document.body is null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant