SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Feb 2007
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Link selection problem

    Hi All,

    Even i am facing a problem for selecting the link.

    In mine, I have a link which consists of a sub link.

    In brief, the main link consists of a button with plus mark("+")
    When u expand this + mark, you will see the sub links under the main link
    And i have a list of such main links....
    presently i am using this code for selecting the main link..

    -----------

    rowcount=Browser("").Page("").WebTable("").RowCoun t

    For i=1 to rowcount
    colcount=Browser("").Page("").WebTable("").ColumnC ount(i)
    For j=1 to colcount
    childcnt=Browser("").Page("").WebTable("").ChildIt emCount(i,j,"Link")
    For k=1 to childcnt temp=k-1
    set obj=Browser("").Page("").WebTable("").ChildItem(i, j,"Link",temp)
    If obj.getroproperty("innerText")="13-Jan-2007" Then
    obj.click ExitTestIteration End if
    next
    Next
    Next

    --------------
    The above code is able to click only the main link....

    so.. can anyone give me suggession to even click the sub-links under a selected main link from the list.
    In this attatchment..i am able to select the links "cv","demo","go live test1" links.....
    But not the sub-links under those..like "Bam Bam" and others.

    Thanks In Advance
    Avinash N
    Attached Files Attached Files

  2. #2
    Moderator
    Join Date
    Sep 2001
    Location
    Doncaster, UK
    Posts
    5,788
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Link selection problem

    Try low-level recording.

    Mark Smith.

  3. #3
    Junior Member
    Join Date
    Feb 2007
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Link selection problem

    Hi Mark,

    what is low level recording.....
    and how does it help.....
    can u plz explain in brief... bcoz i am a fresher and have started working on qtp from last month.

    Avi.

  4. #4
    Junior Member
    Join Date
    Feb 2007
    Location
    mumbai,India
    Posts
    28
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Link selection problem

    Low level recording is anotehr mode of recording the short cut key is crtl+shift+f3.
    Just press this combination while recording.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.11%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 04:06 AM.

Copyright BetaSoft Inc.