-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Profiles for Firefox #2933
Comments
with "firefox_profile" same error |
also having this issue. any help? |
This will be addressed in the next release On Oct 18, 2016 1:08 PM, "grafnikitus" [email protected] wrote:
|
Thank you! Just to clarify the issue: I'm passing as profile the proxy parameters
getting the same error as mentioned: `initialize': unknown option
|
I have the same issue on ubuntu with firefox
|
Hello |
3.0.1 just made sure that Ruby was passing along the expected things to the remote server (which should address the issue for using Ruby to send to the server). I haven't yet had a chance to work with the firefox_profile settings for using directly with Ruby, but it is next on my list. |
Just great ! I will stay tuned then. Thanks ! |
It does not work for me too (selenium-webdriver gem ver. 3.0.1 and FF v51). For disabling marionette: driver = Selenium::WebDriver.for :firefox, :profile => profile, :desired_capabilities => {:marionette => false} I tried disabling marionette that way: driver = Selenium::WebDriver.for :firefox, :profile => profile, :marionette => false But it does not work that way... I think because of mistype that were fixed in this commit: But monkeypatching that mistype at my local PC does not solved this issue anyway. |
Is this issue why I'm getting this error message when I try to use an already existing profile via Watir?
|
If you want to use an existing Firefox Profile, this works with current 3.x
|
@Inglonias yes, I'm quite confident that is the same issue described here. We're experiencing the same issue with our solution Lapis Lazuli, which extends Watir. @titusfortner your workaround doesn't seem to work with our (Ruby) solution. The constant Running it directly from IRB will result in an infinite string. irb(main):001:0> gem 'selenium-webdriver', '3.0.1'
=> true
irb(main):002:0> require 'selenium-webdriver'
=> true
irb(main):003:0> profile = Selenium::WebDriver::Zipper.zip('/path/to/profile/cgc5y9y6.default')
=> "UEsDBBQAAAAIAOR4dUlbY8kP7BQAA....[infinite long string]" Thanks! |
Sorry, it should be |
@titusfortner With previous versions I used (as described in wiki/Ruby-Bindings): profile = Selenium::WebDriver::Firefox::Profile.new |
also same case (OS:ubuntu Browser: firefox 45.5 ESR ) using gem 'selenium-webdriver', '3.0.1' |
@zpetukhov - For now you need to create a new profile with the extension in it, then figure out the path to that profile, then use the code above to zip the profile and pass it in to the driver. @LamhotJM - Things should be working fine for Firefox 45 so long as you are passing in |
@titusfortner it works for me, thank you. |
Yes, that makes sense. I looked at the existing code and a lot if it does things I don't understand, so I'm going to need to reach out to some of the people next week about how to approach it. :) |
@titusfortner Unfortunately, your three line work around that zips the profile doesn't actually seem to launch for me using that profile. Firefox will launch, but it definitely isn't using the profile with the certificate that I need. Furthermore, this generates a Selenium browser object, not Watir, causing me to lose pretty much every capability I need (the ability to create elements off of the browser object, for example) |
@Inglonias - I believe geckodriver is still having issues in its support of certificates. All I can say is that this process for zipping the existing profile works within the confines of what is currently supported by Mozilla. Also, the process is no different from how you would do it in Watir:
|
@Inglonias try this for using it with Watir, it won't help with any geckodriver certificate issues but it should get Watir started up using your profile
or
then
@zpetukhov your temporary profiles should be cleaned up if you specify your profile via |
Fixed with #3174 and released with Selenium gem 3.0.4 |
Hello, just to confirm this problem is over with latest Selenium web driver gem. Many thanks @titusfortner ! |
Was failing on |
I upgraded to 3.0.8, it works. My Firefox is 50.0.1 |
Meta -
OS: OSX el capitan
Ruby: 2.3.1
Selenium Version: 3.0.0
Browser: Firefox 49.0.1
Code
Actually I use Watir, but error is reproduced with pure selenium without watir
Try to create profile for firefox but get an error:
/Users/af/.rvm/gems/ruby-2.3.1/gems/selenium-webdriver-3.0.0/lib/selenium/webdriver/remote/w3c_bridge.rb:80:in 'initialize': unknown option: {:profile=>#<Selenium::WebDriver::Firefox::Profile:0x007fc76b93e1a0 @model=nil, @native_events=false, @secure_ssl=false, @untrusted_issuer=true, @load_no_focus_lib=false, @additional_prefs={"browser.download.dir"=>"/Users/af/Sites/", "browser.download.folderList"=>2, "browser.download.manager.showWhenStarting"=>false, "browser.helperApps.neverAsk.saveToDisk"=>"text/csv"}, @extensions={}>} (ArgumentError)
from /Users/af/.rvm/gems/ruby-2.3.1/gems/selenium-webdriver-3.0.0/lib/selenium/webdriver/firefox/w3c_bridge.rb:34:in 'initialize'
from /Users/af/.rvm/gems/ruby-2.3.1/gems/selenium-webdriver-3.0.0/lib/selenium/webdriver/common/driver.rb:49:in 'new'
from /Users/af/.rvm/gems/ruby-2.3.1/gems/selenium-webdriver-3.0.0/lib/selenium/webdriver/common/driver.rb:49:in 'for'
from /Users/af/.rvm/gems/ruby-2.3.1/gems/selenium-webdriver-3.0.0/lib/selenium/webdriver.rb:82:in 'for'
What can be wrong? Thank you for response.
The text was updated successfully, but these errors were encountered: