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

Thank you for your response. I was using your approach and thought there might be better way of doing it. When I enter a search string (eg 111) then I get all the links that have 111 in them so here is how I did it now. Please let me know if there is a better way of douing it. Also could you please tell me how to read static text inside a web page?

Code:
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, "111") Then
            Reporter.ReportEvent micPass, "Found Group NO", linkTag
            Exit Function
        End If
            
    Next
Thank you,
Sqadri
Reply


Messages In This Thread
RE: How to get Link name before clicking it - by sqadri - 12-22-2011, 10:32 PM

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

Forum Jump:


Users browsing this thread: