Current time: 08-22-2017, 05:07 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Login script not working
02-15-2017, 07:44 PM
Post: #1
Login script not working
Hello, I am trying to login with the following script but unable to do so.
Could you please help me with this?


navigate https://www-secure.target.com/gam-login?...omPath=%2F
exec document.getElementById("logonIdMain").value="XXXXXXXXXXX"
execAndWait $("#logonIdMain").trigger("focusout");
exec document.getElementById("logonPasswordMain").value="XXXXXX"
execAndWait $("#logonPasswordMain").trigger("focusout");
execAndWait document.querySelector("#signin-btn").click();
Find all posts by this user
Quote this message in a reply
02-16-2017, 05:07 AM
Post: #2
RE: Login script not working
I have not used scripting a lot but, it looks like you are mixing Jquery syntax with pure javascript code. The exec* commands should contain pure Javascript code in it.

Follow me on twitter: @rakshay
Visit this user's website Find all posts by this user
Quote this message in a reply
02-17-2017, 07:00 PM
Post: #3
RE: Login script not working
(02-16-2017 05:07 AM)akshayranganath Wrote:  I have not used scripting a lot but, it looks like you are mixing Jquery syntax with pure javascript code. The exec* commands should contain pure Javascript code in it.

I think jquery also works with exec command because I have other scripts which are working fine with jquery.

The similar script format is working for other websites like amazon and myntra.
Find all posts by this user
Quote this message in a reply
02-22-2017, 07:23 PM
Post: #4
RE: Login script not working
Here's a template for authenticating with a login form:

Code:
logData 0
navigate http://www.example.com/login
setValue id=u username
setValue id=p password
submitForm id=login-form
logData 1
navigate http://www.example.com/profile/username

For more info see https://calendar.perfplanet.com/2015/usi...ntication/

Rick Viscomi
Author, Using WebPageTest
http://usingwpt.com
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)