Diffrence between opening a browser/site through selenium and Manually

121 views
Skip to first unread message

SS

unread,
Jun 10, 2014, 9:08:17 AM6/10/14
to seleniu...@googlegroups.com

I have started learning selenium Webdriver API recently. I was trying to automate a simple task of launching gmail.com and logging into account using Chrome browser.

The difference I noticed is when I open browser manually it lists my accounts on the Home page and then I can select the account, enter the password and login in complete

When I launch gmail.com using selenium it directly gives me log in window when I can enter email and password

Any reason why we see the difference while launching browser through selenium

THRINATH

unread,
Jun 11, 2014, 5:16:13 AM6/11/14
to seleniu...@googlegroups.com
Selenium always open new/fresh browser. that's why you can't see any history/cookie data!

Thanks
Thrinath


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/0c5b0df0-3f99-464a-b54e-f7c6b6764a1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Regards,
Thirnath

David

unread,
Jun 11, 2014, 1:16:27 PM6/11/14
to seleniu...@googlegroups.com
I'd also state that that also depends on browser type. Not all the browsers fully/effectively implement the clean sessions (fresh browser) by default. You can expect this of Firefox, and I believe Chrome.

Safari and IE require some startup options to effectively provide that fresh browser state. So in default mode, you may witness the history/cookie data for those.
Reply all
Reply to author
Forward
0 new messages