Open rsingh-03 opened 5 years ago
Hello, have you verified that the extension loads correctly (is visible and enabled in the Addons/Extensions?)
yes,extension is loaded correctly in Extensions. but still getting
Traceback (most recent call last):
File "browserlogs.py", line 133, in
It worked 2 times, I was able to get logs but then it started failing with above mentioned error
p=extension_dir + 'webconsoletap-1.0-fx.xpi' print p f = webdriver.FirefoxProfile() f.add_extension('C:\Users\gs\Desktop\webconsoletap-1.0-fx.xpi') f.set_preference('media.navigator.permission.disabled', True)
f.update_preferences() driver = webdriver.Firefox(firefox_profile=f)
Also I tried to use already present profile with webconsoletap installed in it ,It shows in addsON when I launch FF but get the same error as above.
f = webdriver.FirefoxProfile('C:\Users\gs-0815\AppData\Roaming\Mozilla\Firefox\Profiles\dmb0yt8y.Test')
''' op = Options() op.add_argument("--load-extension=" + p)'''
d = DesiredCapabilities.FIREFOX d['firefox_profile']=f.encoded driver = webdriver.Firefox(desired_capabilities=d)
Well the only way I managed to get this error was to navigate to a special address like about:config or file:///path/to/file
Please note that the manifest file for this extension has a match set to: ":///*" which according to MDN docs should match all standard web pages, excluding resources like file/ftp etc.
Possibly I could change it to
The other scenario that comes to my mind is that at the time of calling requestDump(), the page is loading (e.g. you click save on some form and don't wait for the action to finish). This would explain a lot, since the addon only loads when the page has finished loading. Could you please add some wait to make sure that's not the case? e.g. for java:
WebDriverWait wait = new WebDriverWait(driver, 30); // wait at most 30s
wait.until((ExpectedCondition<Boolean>) wd ->
((JavascriptExecutor) wd).executeScript("return document.readyState").equals("complete"));
or else you can give it a try to load for http://web.fuze.com and try to load extension to repro this issue
I have tried to wait for almost 60 secs after driver.get().still same error
Ok, I'll have a go at it. I can see you're using the python API on windows. What firefox version?
firefox version 65 .Please do update in case of any luck ..This is really urgent issue for me
Ok, I finally found a moment to check this out and it turns out that Fuze itself overwrites the window.console with it's own implementation, so:
Thus with the current implementation this addon will never work for such an app. Possibly there is another way to collect the logs, but I would need to do some more research on that and unfortunately I don't currently have time to do that. Do stay tuned in however, maybe I'll come up with something later (but do note that it'll be more as in weeks, not days).
If you're in contact with the sites developers, ask them whether maybe there's a debug flag which you could toggle when running the tests in order to disable the window.console override in the sites code.
I'm afraid there is nothing more I can do to help you with your task.
Using Selenium 3.13.0, I can only get this to work if I use
driver.install_addon("/tmp/webconsoletap-1.0-fx.xpi", temporary=True)
i.e. using add_extension on the profile does not work.
In the latter case, the extension and its methods, e.g. requestDump are not available.
Getting above error while capturing logs using webconssoleTap