Chrondeath 0 Report post Posted April 17, 2014 I have a test scenario where I need to locate parameters to pass in the next request based on some context in the response that I don't think I can handle with the Search function type (there is dynamic text between the string I need to extract and the string I need to recognize). A Javascript function looked like the best solution to extract the response data that I need, but I'm having trouble figuring out what Javascript features are available for me to use. I tried to import JQuery and Sizzle, and both of them cause an error every time I hit "Test" for my Javascript function, as best I can figure because there is no "window" attribute? It doesn't look like I have access to document.querySelector. I tried to find the version of Javascript using navigator.userAgent, but "navigator" is also undefined. What version of Javascript is being used by WAPT for executing these Javascript functions? Is there anything like querySelector or JQuery available, or am I going to have to parse the document manually? Quote Share this post Link to post Share on other sites
sergei 0 Report post Posted April 18, 2014 WAPT uses Windows Scripting Host to execute JavaScript. I think querySelector should be available if you use IE8. Quote Share this post Link to post Share on other sites
Chrondeath 0 Report post Posted April 18, 2014 I have IE 10 installed, and both of these functions return "undefined": function testQuerySelector(){ return typeof context.document.querySelector;}function testQuerySelectorAll(){ return typeof context.document.querySelectorAll;} Is there something I'm doing wrong to get to these functions? I'm on WAPT Pro 2.5, if it matters. Quote Share this post Link to post Share on other sites
sergei 0 Report post Posted April 21, 2014 I've checked and unfortunately querySelector is not supported. But you can try to use getElementById if it is suitable for you. Quote Share this post Link to post Share on other sites