Traceback (most recent call last):


 "/Users/fuxin/Documents/git/selenium_chrome/selenium_chrome.py", line 56, in <module>

r.html.render()


 "/usr/local/opt/pyenv/versions/3.6.0/envs/py3env/lib/python3.6/site-packages/requests_html.py", line 559, in render

content, result, page = loop.run_until_complete(_async_render(url=self.url, script=script, sleep=sleep, wait=wait, content=self.html, reload=reload, scrolldown=scrolldown, timeout=timeout))


 "/usr/local/opt/pyenv/versions/3.6.0/lib/python3.6/asyncio/base_events.py", line 466, in run_until_complete

return future.result()


 "/usr/local/opt/pyenv/versions/3.6.0/envs/py3env/lib/python3.6/site-packages/requests_html.py", line 517, in _async_render

page = await browser.newPage()
AttributeError: 'coroutine' object has no attribute 'newPage'

Traceback (most recent call last):


 "main.py", line 13, in <module>

if img_color.ndim == 3:
AttributeError: 'NoneType' object has no attribute 'ndim'
