Jump to content
WAPT Forum
Sign in to follow this  
Chrondeath

What version of Javascript does WAPT use?

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

I've checked and unfortunately querySelector is not supported.

 

But you can try to use getElementById if it is suitable for you.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×