Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help in automation of broken links in Application
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Did you try using the visible property.
ex:
''******If you are trying for only one link object********
''Checking the existence and visible property simultaneously, use this your sure the link will exist for sure.
Code:
if Hierarchy.Link(abc).Exist and Hierarchy.Link(abc).GetRoProperty("visible") then
End if

'*****OR use the below code if your not sure of the link existence****
Code:
if Hierarchy.Link(abc).Exist then
if Hierarchy.Link(abc).GetRoProperty("visible") then
  'do your operrations
End if
End if

'*******Else if your trying to get link object collection********
''The above code gives the number of links visible in screen.
Code:
Set LinkObj = Description.Create
LinkObj("micclass").Value = "Link"
LinkObj("visible").Value = "True"

Set LinkObjColec = Hierarchy.ChildObjects(LinkObj)
msgbox LinkObjColec.count
Reply


Messages In This Thread
RE: Need help in automation of broken links in Application - by Gajre - 11-22-2011, 06:40 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Verify images get properly loaded or not(Broken Images) in respective pages nilanjans 4 4,056 01-17-2013, 10:51 AM
Last Post: nilanjans
  Automation of Mobile Application testing using QTP sreddy 3 6,428 12-17-2012, 08:02 PM
Last Post: Ankur
  "How to perform automation on Windows application" suresz449 1 3,321 10-15-2012, 11:30 PM
Last Post: agarwl.anurag
  If application crashes or hangs, how to execute next test cases in automation kalyani0820@gmail.com 4 6,189 11-18-2011, 11:56 AM
Last Post: vinod123
  How to get Broken Link Results?? vIns 1 2,347 07-05-2011, 09:12 PM
Last Post: rajpes

Forum Jump:


Users browsing this thread: 1 Guest(s)