SeleniumHQ / selenium

A browser automation framework and ecosystem.
https://selenium.dev
Apache License 2.0
30.02k stars 8.07k forks source link

[🐛 Bug]: Firefox profile ignored using NodeJS #14232

Closed kevinroleke closed 1 month ago

kevinroleke commented 1 month ago

What happened?

Setting a Firefox profile does not work as intended (at all).

How can we reproduce the issue?

const profile = '/home/path/to/my/firefox/profile';
  const opt = new firefox.Options().setProfile(profile);
  let driver = await new Builder().forBrowser(Browser.FIREFOX).setFirefoxOptions(opt).build()
  // Opens default/temp profile, not the one set above
  await driver.get('https://example.com');

Relevant log output

N/A

Operating System

Debian

Selenium version

4.22.0

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

127.0.2

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

GeckoDriver

Are you using Selenium Grid?

No response

github-actions[bot] commented 1 month ago

@kevinroleke, 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, MSEdgeDriver, 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!

kevinroleke commented 1 month ago

Use the path in .moz, not .cache

github-actions[bot] commented 1 week ago

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