Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[馃悰 Bug]: Ruby Firefox - impossible choose non-default profile (Profiles.from_name does not work) #10146

Closed
mingulov opened this issue Dec 14, 2021 · 3 comments

Comments

@mingulov
Copy link

mingulov commented Dec 14, 2021

What happened?

ruby, selenium-webdriver 4.1.0 (most probably since 3.150.0)

The next line fails due to missing Util / Util.app_data_path:
Selenium::WebDriver::Firefox::Profile.from_name("profile_name")

Util.app_data_path is used twice in lib/selenium/webdriver/firefox/profiles_ini.rb, but it is removed more than 2 years ago:

32262cc

As a workaround - I have provided my own copy of that function (and everything started to work), but it would be nice to fix it.
Or is there some other way now to use profiles for Firefox in selenium?

How can we reproduce the issue?

require 'selenium-webdriver'
Selenium::WebDriver::Firefox::Profile.from_name("profile_name")

Relevant log output

Ruby30/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.1.0/lib/selenium/webdriver/firefox/profiles_ini.rb:26:in `initialize': uninitialized constant Selenium::WebDriver::Firefox::ProfilesIni::Util (NameError)
        from Ruby30/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.1.0/lib/selenium/webdriver/firefox/profile.rb:41:in `new'
        from Ruby30/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.1.0/lib/selenium/webdriver/firefox/profile.rb:41:in `ini'
        from Ruby30/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.1.0/lib/selenium/webdriver/firefox/profile.rb:45:in `from_name'

Operating System

Windows 10

Selenium version

ruby, selenium-webdriver 4.1.0

What are the browser(s) and version(s) where you see this issue?

Firefox 95

What are the browser driver(s) and version(s) where you see this issue?

GeckoDriver 0.30.0

Are you using Selenium Grid?

No response

@github-actions
Copy link

@mingulov, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@titusfortner
Copy link
Member

Added it back: 195671c
Will be available in 4.2

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants