SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Jun 2007
    Posts
    513
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Unable to find a link from the list

    I have a list of links where i need to find a particular link that matches with the company name and click on it. This is the code i am using:
    sCoName = "ABC"

    Set oLink = Description.Create()
    oLink("Index").Value = "0"
    oLink("innertext").Value = sCoName
    oLink("outertext").Value = sCoName
    oLink("innerhtml").Value = sCoName
    oLink("html tag").Value = "A"
    oLink("text").Value = sCoName
    'Verify if company link is found
    If Browser("").Page("").Frame("").Link(oLink).Exist(1 0) Then
    MsgBOx("foundit")
    Browser("").Page("").Frame("").Link(oLink).Click
    Msgbox("clicked")
    ElseMsgBox("NOt found").
    Can someone please tell me what is wrong here? Thanks,

  2. #2
    Senior Member
    Join Date
    Aug 2004
    Location
    Bloomington, IL
    Posts
    300
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to find a link from the list

    Set OLink=Description.Create()
    oLink("innertext").Value=sCoName
    oLink("html tag").Value="A"
    Set ChildCol=Browser().Page().Frame().ChildObjects(oLi nk)
    For I=0 to ChildCol.count-1
    LinkName=Browser().Page().Frame().Link("index:="&a mp;i).GetRoProperty("text")
    If LinkName=<Required Name> Then
    Msgbox "Found"
    Exit For
    End If

    Next

  3. #3
    Senior Member
    Join Date
    Jun 2007
    Posts
    513
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to find a link from the list

    Ok, Thanks, Will try this way.

 

 

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.54%
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 07:52 PM.

Copyright BetaSoft Inc.