Skip to content

Starting with a dedicated Firefox profile doesn't work #444

@inpbox

Description

@inpbox

--- Summary: ---

  • Trying to launch Selenium::Firefox with a dedicated profile ends up using a tmp-profile

--- Environment: ---

  • Debian: 10
  • Perl 5.28.1
  • Firefox: 68.6.0esr
  • Geckodriver: 0.26.0
  • Selenium-Remote-Driver 1.37

--- Code to launch with a dedicated Firefox-profile: ---

use 5.018;
use Selenium::Firefox::Profile;
use Selenium::Firefox;

my $driver = Selenium::Firefox->new(
    'firefox_profile' => Selenium::Firefox::Profile->new(
        'profile_dir'=>'/path/to/firefox/profile'
    )
);

$driver->get('https://www.mozilla.org');
say $driver->get_title();
sleep(60); # Just to get time to run the ps and look for the Firefox-entry

--- Run code, verify profile being used from ps: ---

  • ps aux | grep firefox | grep profile

The firefox-entry should pop up:

  • firefox-esr -marionette -foreground -no-remote -profile /tmp/rust_mozprofile...

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions