Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get Link name before clicking it
#9
Not Solved
Thanks,

I am using thsi code to find a link but when I want to click on this link it does not recognise it. Could you please see if there is anything wrong. aLSO WHENEVER i CLICK INSIDE A PAGE THE NUMBER KEEPS INCREASING LIKE Page(xxx_50) and next time it will be Page(xxx_51), is there a way to avoid this

Thanks,
Sqadri
Code:
Set Des_Obj = Description.Create
Des_Obj("micclass").Value = "Link"
'set parent and child objects
Set link_col = Browser("Horizon Blue Cross Blue").Page("Horizon – Plan Configurator_5").ChildObjects(Des_Obj)    
linkCount= link_col.count
For i =0 To linkCount -1
      linkTag = link_col(i).GetROProperty("name")
      Reporter.ReportEvent micPass, "Link Name", linkTag
      'if  group number '111' exists in the group No link then exit
                
       If Instr(linkTag, groupNo) Then
    Reporter.ReportEvent micPass, "Found Group NO", linkTag
             FAILS ON THE FOLLOWING LINE
             Browser("xxx").Page("xxx_50").Link(linkTag).Click
Reply


Messages In This Thread
RE: How to get Link name before clicking it - by sqadri - 12-30-2011, 11:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Winbutton slow in clicking kpat 0 2,118 05-23-2016, 12:09 PM
Last Post: kpat
  Clicking on sublink venkatesh9032 1 3,169 06-01-2015, 08:26 PM
Last Post: babu123
Exclamation Login & logout in Siebel and clicking pop-up button yuetling926 7 12,251 07-09-2014, 10:43 PM
Last Post: hhamilton
  Clicking a link in an outlook email using QTP kirti 0 5,974 06-15-2014, 01:25 AM
Last Post: kirti
  QTP not clicking on Yes button in the IE pop up dialog adityasrinivasb 2 10,290 09-29-2013, 11:01 PM
Last Post: prashantrawat101@gmail.com

Forum Jump:


Users browsing this thread: 1 Guest(s)