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
Can we record using all the modes in a single script? Explanation with example is appreciated
in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded
What are the general steps involved in the data driven framework?
What are the recording modes in wave event?
Describe how Smart Identification is used
1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?
What is a data driven test in qtp?
Hi How to retrieve data from web element line by line?
How to record a qtp script ?
How to suppress warnings from the test results page?
Hi All , How can we decicde for pariticular frame(DataDriven or Keword Driven)in Project? Thanks Balaji
Hi,Sudhanandareddy plz forword framework and ppts for QTP to me. This is my mail id: ranjith_99reddy@yahoo.co.in (your contact number also)
What are the different types of checkpoints?
could any help me please, how to work on visual foxpro application using UFT
How to test background color and dynamic images during run time can you put the check point for moving objects?