04-20-2015, 07:26 AM
I need a help regarding authenticating users via login page.
I am trying to login user and then navigating to the my/account page where user can see his/her account information. Below are the steps I am following which are the same as I am browsing the site.
Below is the script I am using.
logData 0
// bring up the login screen
navigate https://www.chegg.com/auth?action=login
logData 1
// log in
setValue name=email someone@example.com
setValue name=password MY_PASSWORD
submitForm name=login-form
navigate https://www.chegg.com/my/account
Tab characters are there in the script but somehow they not appearing correctly. Also I am using a legit username/password that works on the site. The issue I am seeing is upon navigating user to my/account page somehow the authentication didn't happen on the first step so it will redirect user back to the login screen. The same username/password works when I try them on the actual site.
Any help is appreciated.
I am trying to login user and then navigating to the my/account page where user can see his/her account information. Below are the steps I am following which are the same as I am browsing the site.
- navigate to the login screen
- Fill username and password
- Submit the login form
- navigate to my/account page
Below is the script I am using.
logData 0
// bring up the login screen
navigate https://www.chegg.com/auth?action=login
logData 1
// log in
setValue name=email someone@example.com
setValue name=password MY_PASSWORD
submitForm name=login-form
navigate https://www.chegg.com/my/account
Tab characters are there in the script but somehow they not appearing correctly. Also I am using a legit username/password that works on the site. The issue I am seeing is upon navigating user to my/account page somehow the authentication didn't happen on the first step so it will redirect user back to the login screen. The same username/password works when I try them on the actual site.
Any help is appreciated.