insta_bot icon indicating copy to clipboard operation
insta_bot copied to clipboard

Some issue selenium.common.exceptions.NoSuchElementException

Open musicwarez opened this issue 7 years ago • 0 comments

Open https://www.instagram.com/accounts/login/ Trying to auth with cookies. Successful authorization with cookies. Open https://www.instagram.com/ Start scrolling page. 1%|█▏ | 2/300 [00:00<01:56, 2.56it/s]Browser process was ended

Traceback (most recent call last): File "like_my_feed.py", line 26, in br.process_feed(count) File "/home/musicwarez/work/insta_bot/env/lib/python3.6/site-packages/insta_browser/browser.py", line 102, in process_feed processor.process(self.exclude, self.login) File "/home/musicwarez/work/insta_bot/env/lib/python3.6/site-packages/insta_browser/processors/feed_processor.py", line 89, in process heart = real_post.find_element_by_css_selector('div:nth-child(3) section a:first-child') File "/home/musicwarez/work/insta_bot/env/lib/python3.6/site-packages/selenium/webdriver/remote/webelement.py", line 430, in find_element_by_css_selector return self.find_element(by=By.CSS_SELECTOR, value=css_selector) File "/home/musicwarez/work/insta_bot/env/lib/python3.6/site-packages/selenium/webdriver/remote/webelement.py", line 659, in find_element {"using": by, "value": value})['value'] File "/home/musicwarez/work/insta_bot/env/lib/python3.6/site-packages/selenium/webdriver/remote/webelement.py", line 633, in _execute return self._parent.execute(command, params) File "/home/musicwarez/work/insta_bot/env/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute self.error_handler.check_response(response) File "/home/musicwarez/work/insta_bot/env/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"div:nth-child(3) section a:first-child"} (Session info: headless chrome=71.0.3578.98) (Driver info: chromedriver=2.41.578700 (2f1ed5f9343c13f73144538f15c00b370eda6706),platform=Linux 4.15.0-43-generic x86_64)

musicwarez avatar Dec 23 '18 17:12 musicwarez