Micro Focus QTP (UFT) Forums
Get list of webedits in repository - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Get list of webedits in repository (/Thread-Get-list-of-webedits-in-repository)



Get list of webedits in repository - mjt - 09-16-2015

Is there a way to query what objects are defined in the repository?  (I want to verify that every object in the repository exists in the page.)

Specifically, I'd like to do something like this:


Code:
Set WebEditArray = Browser("MyBrowser").Page("MyPage").getObjectList("WebEdit")

ForEach we in WebEditArray
    if not Browser("MyBrowser").Page("MyPage").WebEdit(we).Exist(1) then
        Print "Missing WebEdit " & we
    End if
Next


Is there a getObjectList(...) function?