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


Please Help Members By Posting Answers For Below Questions

Explain advantages and disadvantages of ddf?

814


We stored into the objects OR and then write the scripting

1783


How to associate function library at a run time?

918


How do you check ticket cost and ticket number in flight application?

836


Hi, Can we open a test in qtp10 which is saved in qtp 9.2?

1682


Write a script to customize the test results in PDF and HTML format.

2341


1. wat are the main diff b/w QTP 8.0 AND QTP 9.2 ( not user interface) 2. wat is the meaning of Keyword in keyword driven frame work? 3. how u will handle the unknown errors while exucution. (not recovery scenario)

1972


How to record a qtp script ?

774


What is qtpro? What is quick test pro? What is a quick test professional?

835


Explain object spy in qtp.

822


Should have experience in framework means?

1658


Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?

792


give me an example where u used good judgement and logic in solving a problem

3582


What is the Command used to start the QTP

1727


How many add-ins comes by default with quicktest professional (qtp)?

778