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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...