WebPagetest Forums
Not able to use jQuery with JFireFox - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Private Instances (/forumdisplay.php?fid=12)
+--- Thread: Not able to use jQuery with JFireFox (/showthread.php?tid=14741)



Not able to use jQuery with JFireFox - johnapclaw - 02-09-2017 05:16 AM

Hello,

I am having problems running jQuery with FireFox. It just doesn't seem to be working. My WPT script has

execAndWait $("#wrapper > div:nth-child(1) > div:nth-child(2) > ul:nth-child(1) > li:nth-child(2) > a:nth-child(1)").click();

This will work with chrome but doesn't work with FireFox. I have tried a few versions of FireFox.

Also, the following will work with FireFox. However, I really need to use jQuery for some of the other calls.

execAndWait document.querySelector("#wrapper > div:nth-child(1) > div:nth-child(2) > ul:nth-child(1) > li:nth-child(2) > a:nth-child(1)").click();

I can call jQuery from the FireFox's console and it does click on the object.

Current Setup
Private Instance of WPT
WPT server 3.0
WPT agent 3.0.0.348
FireFox v51.0.1 (32-bit)
$().jquery) = 2.1.3

Any help or suggestions would be greatly appreciated.

Thank you,
John