soraxas / echo360

Commandline tool for automated downloads of echo360 videos hosted by university
https://cs.tinyiu.com/echo360
MIT License
280 stars 53 forks source link

Missing or invalid capabilities in selenium #71

Closed nightlessbaron closed 1 year ago

nightlessbaron commented 1 year ago

Hello,

I am getting the error as shown in the image below.

I tried the following things:

But nothing seems to be working. Am I missing something? Thank you so much!

image
soraxas commented 1 year ago

Related to #66 on invalid capabilities?

nightlessbaron commented 1 year ago

Hi @soraxas, thanks for your reply. It doesn't seem to be the case, as I am getting similar error on Linux environment (tried it in Codespace)

image
soraxas commented 1 year ago

Related to upstream selenium introducing breaking changes: https://github.com/SeleniumHQ/selenium/blob/58122b261a5f5406da8e5252c9ab54c464da7aa8/py/CHANGES#L79

try re-installing needed packages (after pulling latest changes):

pip3 install -r requirements.txt

or

pip3 install 'selenium<4.1.4'
nightlessbaron commented 1 year ago

Hi @soraxas , thanks for helping me out so far. However, I don't think this is the issue. After exploring this a little bit, I observed that in both cases (on my terminal & on codespace), selenium was not able to configure to the location of chrome driver. A possible solution might be this Stackoverflow link. I will check it out tomorrow and let you know if I am able to resolve the issue. Thanks once again for your help!

soraxas commented 1 year ago

Are you sure?

I was able to reproduce your issue by using a different selenium version.

Did you actually give it a go?

selenium 4.1.4

Screenshot from 2022-12-15 17-42-11

selenium 4.1.3

Screenshot from 2022-12-15 17-42-50

nightlessbaron commented 1 year ago

Hi @soraxas, yes, at least in my case, it doesn't seem to be the issue due to selenium version.

image

EDIT: figured it out finally !! I had an issue with the folder in which I installed chrome version on my Mac. Re-downloading both chrome and chrome drivers resolved the issue. Also, downgraded the version of selenium to 4.1.3. It's working now. Thank you so much!