Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Check specific links of a webpage
#1
Reply
#2
Step 1:
Create description of the links

Step 2:
Identify all the links in the page.

Step 3:
Keep for loop and inside the the for loop keep if cond and check whether the link exists. if exists click and write exit for. else fail.

snippet:

Code:
dim objlink set objlink = description.create objlink("micclass").value = "Link" set objlinkcoll = Browser("Name:=.*").page("Title:=.*).childobjects(objlink) 'Msgbox objlinkcoll.count for i=0 to objlinkcoll.count 'check ur link exists in loop if (trim("abc") = objlinkcoll(i) then objlinkcoll(i).click exit for else print "fail" Next
///Hope this works
Happy scripting
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question How to open IE/Chrome/Firefox with a specific size? DarkestAmadeus 0 2,482 07-19-2018, 05:38 AM
Last Post: DarkestAmadeus
  webpage WinObject has same name Ananthakumar_S 0 2,059 11-30-2016, 09:48 PM
Last Post: Ananthakumar_S
Exclamation How to verify whether pdf is completely loaded or not in webpage nmakkena 1 3,188 08-27-2014, 04:09 PM
Last Post: vinod123
  Handling .NET framework menu in webpage using QTP 10 vishnu1067 0 2,669 05-15-2014, 05:30 PM
Last Post: vishnu1067
  Comparing webtable data with weblist and webelements in other webpage arnav 1 6,361 04-18-2014, 10:01 PM
Last Post: Parke

Forum Jump:


Users browsing this thread: 1 Guest(s)