Welcome, Guest. Please login or register.
Login with username, password and session length

 
Advanced search

18468 Posts in 4831 Topics- by 32605 Members - Latest Member: ankit
 

AdvancedQTP forums have been nominated as a finalist in ATI’s 2nd annual automation honors awards!

We’d like to thank you for your continued support and participation, and urge you to hurry and vote.

Make you voice count! 


Pages: [1]   Go Down
Print
0 Members and 1 Guest are viewing this topic.
Author Topic: problem in identifying weblink    (Read 191 times)
vijay44
User
*
Offline Offline

Posts: 18


« on: February 08, 2010, 09:08:37 AM »

Hi,
This post is different with the last one.

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
Logged
Asiq Ahamed
Moderator
Sr. User
*****
Offline Offline

Posts: 498



« Reply #1 on: February 08, 2010, 09:30:37 AM »

Have you resolved the previous one?

http://www.advancedqtp.com/forums/index.php/topic,4445.0.html
Logged
vijay44
User
*
Offline Offline

Posts: 18


« Reply #2 on: February 08, 2010, 09:18:13 PM »

Hi,
I was able to resolve the previous one
Set WbLink = Description.Create()
         WbLink("micclass").Value = "Link"
         WbLink("name").Value = "o"
wbLink("href").Value=".*process\'.*"

Any help in this issue will be really appreciated.

Regards;
vijay         
Logged
Asiq Ahamed
Moderator
Sr. User
*****
Offline Offline

Posts: 498



« Reply #3 on: February 08, 2010, 09:34:53 PM »

Hi Vijay,
      Can you post the exact code what you have tried? Have you tried with regular expression?
Logged
vijay44
User
*
Offline Offline

Posts: 18


« Reply #4 on: February 08, 2010, 09:52:07 PM »

Hi,
No, the problem here was to filter the child objects.
i was able to solve
Set WbLink = Description.Create()
         WbLink("micclass").Value = "Link"
         WbLink("name").Value = "o"
wbLink("href").Value=".*process\'.*" -->By changing this i was able to achieve
using this--->it only filters the process child objects.The conditional statements were right

such similar issue is  with


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;
Vijay
Logged
Pages: [1]   Go Up
Print
Jump to: