Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using static descriptive programming how to count no. of objects on any webpage
#5
Not Solved
Hi,
Here is my approach, Dont know other logic.
Code:
Set p=browser("CreationTime:=0").page("micClass:=Page").ChildObjects(WebButton("micClass:=WebButton"))
i=0
For x=0 to p.count-1 step 1
If p(x).getroproperty("micClass") = "WebButton" Then
    i=i+1
End If
Next
msgbox "Count :" &i
Reply


Messages In This Thread
RE: Using static descriptive programming how to count no. of objects on any webpage - by kotaramamohana - 08-11-2015, 08:48 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Dynamic descriptive Programming issue in Terminal Emulator cprasad 1 1,950 04-25-2019, 08:17 PM
Last Post: Ankur
  Capture All text from webpage and copy it... mpatra 3 5,227 07-25-2018, 05:33 PM
Last Post: vimlesh
  UFT Tool support with Descriptive programming laks 1 1,776 07-05-2018, 05:31 PM
Last Post: Ankur
  UFT Descriptive Programming objects not identified in a secure & private intranet env bugfinder2 1 1,829 06-07-2017, 01:41 PM
Last Post: Ankur
  UFT descriptive programming Browser("creationtime:=-1") not always working SOUMYADEEP 0 3,088 01-20-2017, 01:53 AM
Last Post: SOUMYADEEP

Forum Jump:


Users browsing this thread: 5 Guest(s)