06-11-2015, 05:20 PM
|
Check specific links of a webpage
|
|
06-11-2015, 06:23 PM
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"
NextHappy scripting |
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
|
|
How to open IE/Chrome/Firefox with a specific size? | DarkestAmadeus | 0 | 2,485 |
07-19-2018, 05:38 AM Last Post: DarkestAmadeus |
| webpage WinObject has same name | Ananthakumar_S | 0 | 2,060 |
11-30-2016, 09:48 PM Last Post: Ananthakumar_S |
|
|
|
How to verify whether pdf is completely loaded or not in webpage | nmakkena | 1 | 3,191 |
08-27-2014, 04:09 PM Last Post: vinod123 |
| Handling .NET framework menu in webpage using QTP 10 | vishnu1067 | 0 | 2,671 |
05-15-2014, 05:30 PM Last Post: vishnu1067 |
|
| Comparing webtable data with weblist and webelements in other webpage | arnav | 1 | 6,362 |
04-18-2014, 10:01 PM Last Post: Parke |
|
Users browsing this thread: 1 Guest(s)

