title: Selenium get .har file
body: <p>I have a two page application:
  <br><strong>/login</strong>
  <br><strong>/profile</strong>
  <br>I want to get .har file page <strong>/profile</strong>.
  <br>When i go to the page <strong>/login</strong>, the cookie is created with a key=connect.sid and value = "example value". This cookie is not yet active.
  I added the cookies with active connect.sid.</p>
  
  <pre><code>WebDriver webDriver = getDriver();
  webDriver.get(LOGIN_PAGE);
  webDriver.manage().addCookie(connectsSId);
  </code></pre>
  
  <p>it does not work because after the load page, /login crated a new cookies. 
  i also tried this code:</p>
  
  <pre><code>WebDriver webDriver = getDriver();
  webDriver.get(PROFILE_PAGE);
  webDriver.manage().deleteAllCookies();
  webDriver.manage().addCookie(connectsSId);
  </code></pre>
  
  <p>and this does not work. cookies were added but it seems too late.</p>
  
  <pre><code> WebDriver webDriver = getDriver();
   LoginPage loginPage = new LoginPage(getDriver());
   LandingPage landingPage = loginPage.login();
   landingPage.openProfilePage();
  </code></pre>
  
  <p>This code created a .har file for the page <strong>/login</strong>.
  <br>for some reason, the file is created only after the first call to the page. I can not solve this problem.</p>