fbuetler / asvz-bot

ASVZ Bot to enroll to lessons. Get a place when the registration opens or when a place gets free. Works for ETH, UZH and ZHAW students.
GNU General Public License v3.0
66 stars 25 forks source link

Element on website not found #16

Closed cvonholly closed 1 year ago

cvonholly commented 1 year ago

When running asvz_bot.py with a valid lesson ID, the script was not able to find the element

2023-02-02 09:19:49 ERROR Element on website not found! This may happen when the website was updated recently. Please report this incident to: https://github.com/fbuetler/asvz-bot/issues

raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//dl[contains(., 'Datum/Zeit')]/dd"} (Session info: headless chrome=...)

fbuetler commented 1 year ago

I cannot reproduce this issue. This works just fine for me:

python asvz_bot.py lesson 377593

What version are you using?

cvonholly commented 1 year ago

I deleted the json file and logged in again and it worked. Sorry for the inconviniece