--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.
profile = FirefoxProfile()
profile.set_preference("general.useragent.override", "USER
AGENT STRING")
capabilites = webdriver.DesiredCapabilities.FIREFOX
capabilites["firefox_profile"] =
profile.default_preferences
cls.driver = webdriver.Remote("http://localhost:4444/wd/
hub",capabilites)
This works with grid, but the user agent doesnt load. If run locally,
the user agent does load.
if I change this line:
capabilites["firefox_profile"] = profile.default_preferences
with
capabilites["firefox_profile"] = profile
I get an error that the firefox profile is not json Serializable...
Please Help!
Thanks
David
On Nov 7, 11:31 pm, Krishnan Mahadevan
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/c5375c9c-518a-4cac-bbc4-52e901244c7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.