Redirecting back to login page in selenium

347 views
Skip to first unread message

Display Name

unread,
Oct 30, 2015, 10:23:16 AM10/30/15
to Selenium Users
Hey Guys,

I am trying to automate a login scenario. 

Steps:

1. Entering username - success.
2. Entering password - success.
3. Able to click login button - success. 

But after authentication redirected back to login page only. I am using correct username & password. Earlier it was working but suddenly it stopped working. I am able to login successfully using the same credentials manually.

Any help would be appreciated.

Mark Collin

unread,
Nov 6, 2015, 3:58:40 AM11/6/15
to Selenium Users
What has changed since it used to work?  Maybe it's a bug in the site you are testing?

Joe Schuttler

unread,
Nov 9, 2015, 9:29:40 AM11/9/15
to Selenium Users
Would you be able to post a code snippet? Have you changed any capabilities on the driver itself? Redirecting back to the login page makes it sound like an issue with the browser potentially blocking cookies or some other security feature. You may even want to try putting a breakpoint in the beginning of your test, debugging, letting the window open, and try to login on your own through the browser that is opened via Selenium. If it does not let you login manually through that browser instance, again I would say it seems like something with cookies being blocked or another security issue.
Reply all
Reply to author
Forward
0 new messages