Current time: 12-15-2017, 09:59 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sendKeyDownAndWait not working
01-20-2017, 09:42 PM
Post: #1
sendKeyDownAndWait not working
Hello,
sendKeyDownAndWait command is not working in a search bar.
Link of the site is below:
http://www.target.com/

clickAndwait and javascript is also not working.
Please help me with this issue.
Find all posts by this user
Quote this message in a reply
01-24-2017, 01:21 AM
Post: #2
RE: sendKeyDownAndWait not working
If the page already has jQuery on it you can use the same approach I used on the Trainline site

It's about half way through this deck - https://ldnwebperf.org/sessions/using-we...instances/

Andy

Using WebPageTest - http://usingwpt.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
01-24-2017, 10:02 PM (This post was last modified: 01-25-2017 02:46 PM by shraddha.)
Post: #3
RE: sendKeyDownAndWait not working
Hello,
Thank you for the reply.

Jquery is working in console, but not in webpagetest.
Following is the script I am running.
I am running it for payment page.
As $("#cardNumber").keydown() wasn't working I tried with other Jquery commands and they are working in console.

execAndWait $("#cardNumber").trigger("focusin")
execAndWait document.querySelector("#cardNumber").value="XXXX XXXX XXXX XXXX"
execAndWait $("#cardNumber").trigger("focusout")
execAndWait document.querySelector("#expiry").value="05/25"
execAndWait $("#expiry").trigger("focusout")
execAndWait $("#cvv").trigger("focusin")
execAndWait document.getElementById("cvv").value="***"
execAndWait $("#cvv").trigger("focusout")
execAndWait document.getElementById("cardName").value="Pappy Pp"
execAndWait $("#cardName").trigger("focusout")
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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