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 the check points in quicktest professional?
What is keyword view?
Hi , I am facing issue QTP 10.0 with oracle ERP 11i .When QTP opens,click sub links on ERP ,FORM is not opening getting unexpected Internet explorer error message with send or don't send report.So unable to work with forms using QTP.
How to test background color and dynamic images during run time can you put the check point for moving objects?
Explain measuring transaction.
Hello, Is there any way to send the test results in html format (or any other) by email using outlook after the test run ends? thank you in advance
Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)
if anyone has idea of the interview procedure in covansys, plz send me a mail?
what difference between runtime object and text object and what property they have. whether they have same properties or different properties.
Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?
What is expert view and keyword view?
Explain the new feature of UFT regarding the export of test results?
What is optional step in qtp? How you can add optional step in qtp?
What are the five challenges you faced in QTP?
How to remove associated function library?