morinted / schedule-generator

A schedule generator for the University of Ottawa written in Java, using OCSF.
63 stars 19 forks source link

Updates fail on uOttawa SQL error #49

Closed davidschlachter closed 4 years ago

davidschlachter commented 4 years ago

Error appears to be intermittent but causes scraping to fail. The 'System Log' referenced is not the JavaScript console, it appears to be server-side.

The dialog box needs to be detected and dismissed.

Python traceback:

david@t480 0 [0] ~/Synced/Development/schedule-generator/course-download
15:34:01 $ python2.7 updateDatabase.py 
Traceback (most recent call last):
  File "updateDatabase.py", line 354, in <module>
    main()
  File "updateDatabase.py", line 190, in main
    b.find_element_by_id(language).click()
  File "/home/david/.local/lib/python2.7/site-packages/selenium/webdriver/remote/webelement.py", line 80, in click
    self._execute(Command.CLICK_ELEMENT)
  File "/home/david/.local/lib/python2.7/site-packages/selenium/webdriver/remote/webelement.py", line 633, in _execute
    return self._parent.execute(command, params)
  File "/home/david/.local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "/home/david/.local/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element <input type="checkbox" name="UO_PUB_SRCH_WRK_UO_LNG_EN$0" id="UO_PUB_SRCH_WRK_UO_LNG_EN$0" class="PSCHECKBOX" tabindex="66" value="Y" onclick="setupTimeout2();    this.form.UO_PUB_SRCH_WRK_UO_LNG_EN$chk$0.value=(this.checked?'Y':'N');doFocus_win0(this,false,true);"> is not clickable at point (249, 437). Other element would receive the click: <div id="okbutton" align="center">...</div>
  (Session info: chrome=80.0.3987.163)

Error message in browser: Mon 13 Apr 2020 15:53:17 EDT