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 more about the Test Fusion Report of QTP?
Is QTP supports Unix. If yes, then how the test automation is done?
What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????
what is meant by Implicit and explicit requirements?
What is the quicktest professional (qtp) testing process?
What is the use of text output value in quicktest professional (qtp)?
Name the different types of recording modes?
You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?
What is text/text area checkpoint?
Is text area check point supports for web applications?
WHAT IS THE DIFFERENCE BETWEEN QTP SCRIPT AND VB SCRIPT? HOW MUCH PERCENTAGE WE USE IN QTP SCRIPT REAL TIME AND HOW MUCH PERCEN OF VB SCRIPT,,,,,,,
How to use output values in qtp ?
How qtp recognizes the object?
Explain the difference between call to action and copy action?
How many types of recording modes in qtp? Describe each type with an example where we use them?