Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Can't enroll #6

Open
aligit opened this issue Dec 13, 2020 · 1 comment
Open

Can't enroll #6

aligit opened this issue Dec 13, 2020 · 1 comment

Comments

@aligit
Copy link

aligit commented Dec 13, 2020

Coucou Julian,
thank you for the great work.

Currently the script fails at line 72 (driver.switch_to.window(tabs[1])) with an exception rised:

*** selenium.common.exceptions.InvalidArgumentException: Message: Expected "handle" to be a string, got [object Undefined] undefined

I'm not a python guy but I guess this is related to a selenium as pointed out here.
Dear Julian, do you maybe have a hint for this problem. It might be hopefully helpful to make a PR if I manage to use your hint.
All the best
Ali

@jstiefel
Copy link
Owner

Hi there,

Thank you. Indeed, this is a selenium error. It might be that something changed with the handle in the meantime or it could also be a bug as mentioned on stackoverflow. I would need to try it, but there might be different ways to get the handle instead of entering it statically. You could for example try to get the handle of the second window and then putting it into the expression. I will continue working on a version 2 once I find time.

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

No branches or pull requests

2 participants