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

Unable to locate element: [id="main"] #119

Closed
OdinGitDat opened this issue May 22, 2020 · 0 comments · Fixed by #130
Closed

Unable to locate element: [id="main"] #119

OdinGitDat opened this issue May 22, 2020 · 0 comments · Fixed by #130

Comments

@OdinGitDat
Copy link

When importing from imdb.

  • Version: commit 0b04e7b
  • Platform OS: UbuntuLTS 18
  • Running in a virtualenv?: LXC
  • Running in Docker?: yes
  • Executed command: docker run -it -v ~/.RatS.cfg:/RatS/RatS/credentials.cfg stegschreck/rats python3 transfer_ratings.py --source imdb --destination trakt

Stacktrace

===== IMDB: performing loginTraceback (most recent call last):
  File "transfer_ratings.py", line 227, in <module>
    main()
  File "transfer_ratings.py", line 79, in main
    execute(args)
  File "transfer_ratings.py", line 127, in execute
    parser = get_parser_from_arg(args.source)(args)
  File "/RatS/RatS/imdb/imdb_ratings_parser.py", line 10, in __init__
    super(IMDBRatingsParser, 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"]


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants