I am currently automating test of Salesforce application and in the automation suite, logging into the application is performed numerous time. I am using Selenium + Java for the purpose of automation.
Is there any way to skip the multiple logins via; like if we can hit some login endpoint and inject the response cookies to the browser instance. Or if we can log in once and somehow save the session id or necessary cookies which could then be injected to new browser instances so that we can skip login step.
Also, I want to add on that I am using Salesforce lightning.
Any sort of help is highly appreciated :)