-
Notifications
You must be signed in to change notification settings - Fork 99
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
Cannot install extensions. #188
Comments
Your code looks right. See also the test code in tor-browser-selenium/tbselenium/test/test_addons.py Lines 48 to 49 in 462b027
If the problem persists, please check whether the |
Thank you for the speedy reply! The TBB_PATH used to launch the browser doesn't work, it says it needs proper path or binarary.. In the test. |
Sorry for not including my current unit test, please find it below `import unittest vdisplay = Xvfb(width=1920, height=1080, colordepth=24) def start_tbselenium_with_adblock():
if name == "main":
|
`from xvfbwrapper import Xvfb class CustomTBAddonsTest(TBAddonsTest):
test = CustomTBAddonsTest() Sorry, I wasn't instancing the class properly in my previous post. I'm able to do things like driver.get("https://google.com") at the breakpoint but when I call the self.get_list_of_installed_addons(driver) method I'm getting *** selenium.common.exceptions.WebDriverException: Message: Failed to extract web element from Marionette response |
It's hard to understand the code due to formatting issues, but if you can load a page via |
I'm deeply sorry about the confusion. I really should learn Github formatting!
Using snippets from your unit test, I was able to take a screenshot. The load_url method doesn't exists for some reason. The screenshot does indeed show the adblockers are installed, but I'm getting a low score on https://adblock-tester.com/ vs when I manually run it locally with extensions installed. This is most certainly out of scope for the this repository. Thank you very much for you help :) Feel free to mark this issue as solved. |
P.S. Is there a way I can buy you a coffee? |
Maybe the extensions aren't able to run in the context of a private window? Which I believe TOR browsers launches in, by default? |
Hi @SheldonPatnett , glad you have it worked. Allowing extensions to run on Private windows is a good idea. But, as you said, this issue is likely not related to tor-browser-selenium. So I'm closing. |
How can you use extensions? It's not quite clear in tbdriver.py. I'm passing in a list of extensions ie
extensions = []
extensions.append('/DEU/workers/Browser/adblock_plus-3.17.xpi')
Then initializing the driver:
The text was updated successfully, but these errors were encountered: