If I am already logged in to my gmail or facebook account and write an automation script from there onwards(e.g. url for inbox) why does it go to sign-in page at run time?
And how did the developers make this possible?
[Edit]
Steps:
- Login to my gmail account manually
Get the URL of the already logged in page and include it in the automation script
driver.get("https://mail.google.com/mail/u/0/#inbox");
Run the script
Result: Goes to the sign-in page instead of the specified URL