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

 
Advanced search

16632 Posts in 4351 Topics- by 28387 Members - Latest Member: clandreth
 

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

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: 286



WWW
« 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
*
Online Online

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: 286



WWW
« 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
*
Online Online

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: