I noticed that I've been getting a ton of crashes, roughly 2-3 pictures into running the script. This is all while running on my Ubuntu server on AWS.
I did a git pull last night and ever since then the script crashes almost as soon as it starts. The only file that was tinkered with was "quickstart.py"
Error:
File "/root/InstaPy/instapy/instapy.py", line 614, in like_by_tags
self.browser, comments)
File "/root/InstaPy/instapy/comment_util.py", line 25, in comment_image
comment_input[0].send_keys("\b")
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webelement.py", line 320, in send_keys
self._execute(Command.SEND_KEYS_TO_ELEMENT, {'value': keys_to_typing(value)})
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webelement.py", line 461, in _execute
return self._parent.execute(command, params)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 236, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/errorhandler.py", line 192, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot focus element
(Session info: chrome=62.0.3202.62)
(Driver info: chromedriver=2.29.461571 (8a88bbe0775e2a23afda0ceaf2ef7ee74e822cc5),platform=Linux 4.4.0-1038-aws x86_64)
This issue isn't a result of anything you did. A number of people are experiencing the same issue.
Check out a possible solution at the bottom of #817
This issue is being solved in #817
Most helpful comment
This issue isn't a result of anything you did. A number of people are experiencing the same issue.
Check out a possible solution at the bottom of #817