Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8779517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:48:30+00:00 2026-06-13T19:48:30+00:00

For a while now we’ve been executing a set of automated tests based on

  • 0

For a while now we’ve been executing a set of automated tests based on WebDriver 2.25.0 using the FirefoxDriver. The tests are executed in parallel (2 threads per core on a quad-core machine) by a Maven 3.0-based build and its FailSafe plugin. Every test has a @BeforeClass method that retrieves an instance of the FirefoxDriver and clears all cookies. All this is working fine.

Because of changes to proxy authentication (there was none before), we now need to run the tests using a particular Firefox profile. The profile was created, and the build now includes the -Dwebdriver.firefox.profile= environment variable. The profile seems to be picked up since we’re not getting any “profile not found” error. However, it seems that every Firefox instance is using the same copy of the profile and therefore is sharing the same cookie store: the application should be offering a region selection dialog on a user’s first visit but doesn’t when running those tests.

Update: The behaviour is the same when running without the -Dwebdriver.firefox.profile variable and using new FirefoxDriver(new ProfilesIni().getProfile(“<profileName>”)) .

Isn’t the FirefoxDriver creating a copy of the specified profile and running each Firefox instance using that isolated copy?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T19:48:31+00:00Added an answer on June 13, 2026 at 7:48 pm
    • If you do not provide a profile while instantiating FirefoxDriver, then when you run the code : new FirefoxDriver(...) , an anonymus profile is created inside C:\Users\#TheUser\AppData\Local\Temp folder , named e.g. anonymous1864251113973276405webdriver-profile.
    • If you provide a profile for FirefoxDriver, then the behavior is the same, excepting the fact that profiles copies are named : e.g. userprofile6938771758695790613copy.

    In conclusion, Webdriver always creates a copy of a profile within this Temp folder even you specify or not a custom profile which has to be used. Regarding cookies, every created profile has a file named cookies.sqlite inside. I’m not 100% sure if cookies interfere in a way or another, they should not. You can check by comparing cookies saved in every webdriver, using:

     Set<Cookie> webDriverCookies = webDriver.manage().getCookies();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For a while now I've been using the __git_ps1 function in my bash's PS1
For a while now we've been having anecdotal slowness on our newly-minted (VMWare-based) SQL
For while now I have been using ezpublish as a framework, and CMS when
For a while now, I'm been using jQuery to offer enhancements via JavaScript on
I've been using NHibernate for a while now, I'm still wondering what the differences
For a while now I've been using subversion for my personal projects. More and
I've been using ajax for a while now and I want to learn more
I have been using C++ for a while now and I began to get
For a while now, I've been using web services regardless of the purpose with
I've been using PHP for a while now - but when I need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.