Selenium get .har file
I have a two page application: /login /profile I want to get .har file page /profile . When i go to the page /login , 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. WebDriver webDriver = getDriver(); webDriver.get(LOGIN_PAGE); webDriver.manage().addCookie(connectsSId); it does not work because after the load page, /login crated a new cookies. i also tried this code: WebDriver webDriver = getDriver(); webDriver.get(PROFILE_PAGE); webDriver.manage().deleteAllCookies(); webDriver.manage()