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

selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: [id="main"] #157

Open
techdough opened this issue May 16, 2021 · 2 comments

Comments

@techdough
Copy link

docker run -it -v ~/.RatS.cfg:/RatS/RatS/credentials.cfg stegschreck/rats python3 transfer_ratings.py --source trakt --all-destinations --verbose

===== IMDB: performing loginTraceback (most recent call last):
File "transfer_ratings.py", line 227, in
main()
File "transfer_ratings.py", line 79, in main
execute(args)
File "transfer_ratings.py", line 129, in execute
execute_inserting(args, movies, parser)
File "transfer_ratings.py", line 146, in execute_inserting
inserter = get_inserter_from_arg(destination)(args)
File "/RatS/RatS/imdb/imdb_ratings_inserter.py", line 15, in init
super(IMDBRatingsInserter, self).init(IMDB(args), args)
File "/RatS/RatS/imdb/imdb_site.py", line 19, in init
self.USERID = self.browser.find_element_by_id('main').get_attribute('data-userid')
File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py", line 360, in find_element_by_id
return self.find_element(by=By.ID, value=id_)
File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py", line 978, in find_element
'value': value})['value']
File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: [id="main"]

@keldian
Copy link

keldian commented Jun 13, 2021

Same here with docker run -d -v /opt/RatS/credentials.cfg:/RatS/RatS/credentials.cfg stegschreck/rats python3 transfer_ratings.py --source trakt --destination imdb

@dominikrys
Copy link

dominikrys commented Apr 19, 2022

I'm experiencing the same issue when running docker run -it -v ~/.RatS.cfg:/RatS/RatS/credentials.cfg stegschreck/rats python3 transfer_ratings.py --source trakt --destination imdb.

Has anyone found a solution?

EDIT: The issue has been fixed on the master branch. Instead of using the published Docker image, use the one in the repo.

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

3 participants