Current time: 09-30-2020, 04:46 AM Hello There, Guest! (LoginRegister)

Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to trigger events using WPT script
08-21-2014, 01:11 AM (This post was last modified: 08-21-2014 01:25 AM by nccgroup_avi.)
Post: #4
RE: Unable to trigger events using WPT script
(08-19-2014 02:54 AM)pmeenan Wrote:  Thanks for your reply Pat! Tried following code but did not work:

logdata 0
logdata 1
execAndWait document.getElementById('hire-search').click()
execAndWait document.getElementById('hire-search').value='LHR'

However I tried the following jquery calls in my Private instance of WPT:

logdata 0
logdata 1
exec $('#hire-search').focus();
exec $('#hire-search').val('LHR');
exec $('#hire-search').trigger('keyup');

I could see the map overlays and auto-suggestions while it was executing the steps on the browser, but it did not capture any screenshots -

Any idea why it would not capture screenshots when using jquery calls?

Finally got this working with jquery calls with screenshots and video:

execAndWait    $('#hire-search').focus();
execAndWait    $('#hire-search').val('LHR');
execAndWait    $('#hire-search').trigger('keyup');

Thanks everyone !
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
RE: Unable to trigger events using WPT script - nccgroup_avi - 08-21-2014 01:11 AM

Forum Jump:

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