Forum Discussion

jga's avatar
jga
New Contributor
9 years ago

Testcomplete 11.10 jQuery not Supported

I read this side "https://support.smartbear.com/viewarticle/69056/"

1 -(All Extensions are installed)

2 - "jquey" is included on the WebPage [<script src="jquery/jquery.js" type"text/javascript"] to the "page.contentDocument.Script"

3 - if i open the "page.contentDocument.Script" -> jQuery is not aviable !!!

 

i use Testcomplet 11.10 and FireFix 31.1.0

 

Please Help

 

1 Reply

  • Hi!

     

    It is available though it is not visible in the inspector. You can check this by evaluating an actual call to jQuery, like this one:

    page.contentDocument.Script.jQuery("*").length

    The call selects all elements on the page and returns its count. You can also use "$" shortcut instead of "jQuery".

     

    jQuery is not a standard member of Script (which is essentially a "window" object of web page) and thus is not visible in the inspector. However it can be seen normally for Internet Explorer / Edge due to specifics of TestComplete support, code completion is also working fine in that case. Note that jQuery is actually a method - not a property (as shown on the screenshot attached to your message).

     

    Hope this helps,

    Stanislav.