kaliiiiiiiiii / Selenium-Driverless

undetected Selenium without usage of chromedriver
https://kaliiiiiiiiii.github.io/Selenium-Driverless/
Other
545 stars 66 forks source link

Chromium Failed to load mv3_extension on linux #202

Closed namtacs closed 3 months ago

namtacs commented 5 months ago

System: Debian Linux trixie Fresh chromium(snap 123.0.6312.105) and Selenium-Driverless installs. Tried Selenium-Driverless current dev and pypi versions.

On load, chromium displays this error: Failed to load extension from: /home/user/.local/lib/python3.11/site-packages/selenium_driverless/files/mv3_extension. Manifest is not valid JSON. Can't read file. in a popup After a few seconds the popup closes and the driver continues working as normal (on first look).

selenium_driverless/files/mv3_extension is a folder(NOT A ZIP) and contains a manifest.json and a script.

namtacs commented 5 months ago

Just realized this project is chrome only 😥️. And with google chrome installed, it works perfectly. This issue looks like a small fix away from being solved. Maybe someone can fix it.

kaliiiiiiiiii commented 5 months ago

@namtacs Have you checked if it succeeds when changing the permissions to rw?

namtacs commented 5 months ago

It's already rw: mv3_extension folder: drwx manifest and script: -rw- Changing to -rwx doesn't help.

On this StackOverflow answer it says to zip it. I tried zipping only the files and putting it under the name of the folder (mv3_extension without a file ext.). And I tried zipping the entire folder and putting it under the same name.

kaliiiiiiiiii commented 5 months ago

It's already rw: mv3_extension folder: drwx manifest and script: -rw- Changing to -rwx doesn't help.

On this StackOverflow answer it says to zip it. I tried zipping only the files and putting it under the name of the folder (mv3_extension without a file ext.). And I tried zipping the entire folder and putting it under the same name.

well it shouldn't even matter - driverless supports both. Question is more why Manifest is not valid JSON

Don't see how https://github.com/kaliiiiiiiiii/Selenium-Driverless/blob/master/src/selenium_driverless/files/mv3_extension/manifest.json could be invalid tbh

@namtacs Can you update driverless & try again?

namtacs commented 5 months ago

same i don't see you did any related commits

kaliiiiiiiiii commented 3 months ago

don't think that's gonna be fixed. Can't relroduce => can't fix that