how do check the links in a webpage ?
Answer Posted / bfakruddin
exp="Link Name" '''
' You can get LINK Properties from any where.... Like
passing parameter value from external source like
DataTable, Environmental Variables, Externally
using "inputbox", etc.,
dim des
set des=description.create
set lnk=browser("...").page("...").childobjects(des)
for i=0 to lnk.count-1
act=lnk(i).getroproperty("outerhtml")
'act=browser("....").page("....").link("...").getroproperty
("outerhtml")
if (exp=act) then
reporter.reportevent micpass,"Link is found","Test is
passed"
End For
else
reporter.reporterever micFail,"Link is not found","Test is
Failed"
End if
Next
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
When using descriptive programming?
What are the advantages of Object Repository?
i am looking job in perfomance testing using Loadrunner any one help me a project plz......?(Chandana) chs_29@rediffmail.com
How to do call a output parameter from one action to another action??/
How to handle dynamic objects in quicktest professional (qtp)?
what could go wrong with test automation?
When do go for loop condition in test?
Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar
Suppose I have three hyperlinks with same properties. How to solve this and what are the ways to solve this. we can solve this by using index property but what are the other ways we have have to solve this problem. Login (href: btnlogin.aspx) Login (href: Sourcelogin.aspx) Login (href: homelogin.aspx)
I want to grow as a Automation Engineer,Kindly help me in clearing my interview that what interviewer looks for as a Automation Engineer. I am having three years of experience in testing.
What are the views available in quicktest professional?
Give me detailed theritical explanation about keyword driven, hybrid framework, environment variables, hybrid frame work
I am getting an error "failed to open the XML checkpoint result viewer" in result window,after clicking on "View XML checkpoint results".Someone suggest me settings,if any...
How to record a qtp script ?
How to use userdifined environment variables.Once we created in Environment tab which is at File--> Settings-- >Environment-->Userdifined