how do check the links in a webpage ?
Answer Posted / deven mehta
Set desc = description.Create
Desc(“micClass”).value = “Link”
Set obj_link = Browser(“creationtime:=0”).page
(“title:=.*”).childobject(desc)
Msgbox obj_link.count
Datatable.globalsheet.addparameter”Link_Google”,”
For I=0 to obj_link.count –1 step 1
Datatable.setcurrentrow(I+1)
‘datatable(“Links_google”)=obj_link(i).getroproperty(“name”)
If NOT strcomp(datatable(“Link_Google”).obj_Link
(i).getroProperty(“name”) = 0 then
Reporter.reporterevent.micfail.”google_page”.datatable
(“Links_Google”)&”Not found”
End if
‘Mesbox obj_link(i).getRoporperty(“name”)
Next
‘Datable.export”C:\google_links.xls”
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How does quicktest professional (qtp) identifies the object in the application?
What is the difference between rational rose and QTP?
Hoe can we do retesting using functions please give the code for it using login page
Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?
What is difference between shared and local object repository?
How can I find out the cursor position through QTP suppose I am keep tabbing(Pressing the tab key continuously) and stoped at a position Now I want to find out where the cursor position is
how many maximum number of virtual users we can create?
Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out
please give me the code for doing retesting of gmail login page using functions so the function has to give the value
Step 3&4 are repeated until an the object in recognised uniquely.
How to creating an output value using quicktest professional (qtp)?
How to get Traceability matrix from TD?
suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?
Hi, I am working on microsoft infopath forms..It is standalone form..(not dotnet or web.) . I am not able to indentify any objects in it.. I am currently using active accessibility in the macro for the same but its execution is too slow.. Kindly help in case you have better solution.
how will you check how many members visited the website www.infosys.com?