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

bggcli fails with new BoardGameGeek game page interface #3

Open
commadelimited opened this issue Sep 29, 2017 · 1 comment
Open

bggcli fails with new BoardGameGeek game page interface #3

commadelimited opened this issue Sep 29, 2017 · 1 comment

Comments

@commadelimited
Copy link

commadelimited commented Sep 29, 2017

The bggcli export tool works flawlessly.

The bggcli import tool works fails when attempting to access elements on the new board game page interface. I'm including a stack trace here:

[bggcli] Importing games for '<account_name>' account...
[bggcli] Authenticating... [done]
[bggcli] Importing 108 games...
[bggcli] [1/108] Custom Heroes... [bggcli] ERROR: Unexpected error while controlling the UI!
Either the web pages have changed and bggcli must be updated, or the site is down for maintenance.
Cause: Message: Unable to locate element: (//a[contains(@onclick, 'CE_ModuleAddItem')])[last()]

Traceback (most recent call last):
  File "/Users/andymatthews/.virtualenvs/bgg/lib/python2.7/site-packages/bggcli/util/csvreader.py", line 60, in iterate
    callback(row)
  File "/Users/andymatthews/.virtualenvs/bgg/lib/python2.7/site-packages/bggcli/commands/collection_import.py", line 50, in <lambda>
    csv_reader.iterate(lambda row: game_page.update(row))
  File "/Users/andymatthews/.virtualenvs/bgg/lib/python2.7/site-packages/bggcli/ui/gamepage.py", line 102, in update
    "(//a[contains(@onclick, 'CE_ModuleAddItem')])[last()]").click()
  File "/Users/andymatthews/.virtualenvs/bgg/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 365, in find_element_by_xpath
    return self.find_element(by=By.XPATH, value=xpath)
  File "/Users/andymatthews/.virtualenvs/bgg/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 843, in find_element
    'value': value})['value']
  File "/Users/andymatthews/.virtualenvs/bgg/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 308, in execute
    self.error_handler.check_response(response)
  File "/Users/andymatthews/.virtualenvs/bgg/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
    raise exception_class(message, screen, stacktrace)

For reference here's the BGG page for the game being added (Custom Heroes):
https://boardgamegeek.com/boardgame/223049/custom-heroes

@HiGregSmith
Copy link

My fork works with the current version of boardgamegeek.com

https://github.com/HiGregSmith/bggcli

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

2 participants