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

Problema cuando hay una línea en blanco en CourseList.txt #1

Open
Cristinasj opened this issue Feb 21, 2021 · 1 comment
Open

Problema cuando hay una línea en blanco en CourseList.txt #1

Cristinasj opened this issue Feb 21, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Cristinasj
Copy link

El programa me dio el siguiente error

4 / 4
Traceback (most recent call last):
File "webPrado.py", line 221, in
main()
File "webPrado.py", line 206, in main
courseRead(courses, driver)
File "webPrado.py", line 110, in courseRead
actualCourse.click()
File "/home/cristina/.local/lib/python3.6/site-packages/selenium/webdriver/remote/webelement.py", line 80, in click
self._execute(Command.CLICK_ELEMENT)
File "/home/cristina/.local/lib/python3.6/site-packages/selenium/webdriver/remote/webelement.py", line 633, in _execute
return self._parent.execute(command, params)
File "/home/cristina/.local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/home/cristina/.local/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementNotInteractableException: Message: Element

could not be scrolled into view

El problema es que me había dejado la última línea en blanco en CourseList.txt. El problema se solucionó cuando borré el último salto de línea.

El programa podría comprobar de alguna forma si son líneas vacías para evitar que a otra persona le de este error.

@RhinoBlindado RhinoBlindado self-assigned this Feb 21, 2021
@RhinoBlindado RhinoBlindado added the enhancement New feature or request label Feb 21, 2021
@RhinoBlindado
Copy link
Owner

Entendido. Lo apuntaré para resolverlo, además de que estoy pensando en automatizar el relleno de asignaturas.

Posiblemente meterlo dentro de una base de datos también

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants