Micro Focus QTP (UFT) Forums
Problem in identifying weblink - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Problem in identifying weblink (/Thread-Problem-in-identifying-weblink)



Problem in identifying weblink - vijay44 - 02-09-2010

Code:
set WbLink = Description.Create()
WbLink("micclass").Value = "Link"
WbLink("name").Value = "o"

wbLink("href").Value=".*comments\'.*"

There are 2 links, the problem here is to identify the links comments and ports.
when i filter childobjects by comments, its even giving the childobjects of ports too.

i want to filter the childobjects of comments
The "href" property of comments:javascript:Overwrite('comments','0','2')
while the "href" property of ports is:
javascript:Overwrite('port','0','2')
Any help will be really appreciated.
Regards;
viajy