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 may types of defects identify application or your currently working application?pls give me answer..
How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?
What is quicktest professional window?
any body can you help me what is the script to automate an comand promt
What is the difference between a Function and Procedure in QTP?
What are the types of object repository in qtp?
This is a question thats generally asked in every QTP interview. What were the problems that you faced during automation and how did you resolve them?
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 to test use the quality control .how to verify the image verification
How to use transactions in qtp?
Problem with XML checkpoint in QTP ?
can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process
what is the difference between modular framework & datadriven framework
what is defenetion of kiran can u tell me plz CVS, SVN
Which functionalities of QTP used in banking project? pls any say answer?