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
Explain advantages and disadvantages of ddf?
We stored into the objects OR and then write the scripting
How to associate function library at a run time?
How do you check ticket cost and ticket number in flight application?
Hi, Can we open a test in qtp10 which is saved in qtp 9.2?
Write a script to customize the test results in PDF and HTML format.
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)
How to record a qtp script ?
What is qtpro? What is quick test pro? What is a quick test professional?
Explain object spy in qtp.
Should have experience in framework means?
Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?
give me an example where u used good judgement and logic in solving a problem
What is the Command used to start the QTP
How many add-ins comes by default with quicktest professional (qtp)?