Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[UFT] Len of DIV founded by ClassName
#1
Not Solved
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:
Code:
$(document).ready(function() {
  alert( $('.blockPage').length );
});
It displays 0.

In UFT I'm using this code:
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [UFT] Get text into DIV through HTML tag robertosalemi 2 5,560 03-29-2016, 09:43 PM
Last Post: robertosalemi
  Identifying DIV & SPAN HTML objects Rahull 2 5,167 02-19-2012, 10:06 AM
Last Post: surya_7mar
  Accessing Links with in DIV SmithaQTP 4 3,805 03-15-2008, 11:03 PM
Last Post: prasanna

Forum Jump:


Users browsing this thread: 2 Guest(s)