Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
[UFT] Len of DIV founded by ClassName
posted

Hi,
I'm testing a web application.

In Firebug of Firefox, with this code I have to check the num of div with my className:


$(document).ready(function() {
alert( $('.blockPage').length );
});

It displays 0.

In UFT I'm using this code:


Set loader = Browser("myApp").Page("myApp").Object.getElementsByClassName("blockPage")
var exist = Len(loader)

exist is equals to 8.

Why is there this two different values?

Thanks.

Parents
No Data
Reply
  • 12480
    Offline posted

    Hi Felino,

    What type of application are you testing? Which Infragistics controls are you using?

    We don't offer a testing tool for web applications, so it may be better to contact HP support for this issue.

Children