Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to display all the links in one page using vb script in qtp.

Answer Posted / sowmya

We can use the page check point to display the number of
links in a web page

or

we can create the child object

set objlink=description.create()
objlink ("micclass").value='weblink'
set odesc=browser("browser").page("browser").childobject
(objlink)

numberoflinks=objlink.count

msg numberoflinks


i think it should work.....

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of vbscript?

1029


How strcomp function works?

1017


Mention how you can call vbscript functions?

1040


How will you release the memory acquired by an array variable in vbscript?

1166


Mention the rules for using option explicit statement?

925


Which operator can be used to do an xor operation in vbscript?

1180


Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?

909


In what way program "hello world" you can write in vbscript?

1064


Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com

1433


what is the standards used for writing the script in QTP

2271


How to access array data?

943


What is vbscript language used for and which earlier language is it modeled upon?

947


did any one attended interview in applabs if you had gone through plz tell me the procedure

2209


What are the environments supported by vbscript language?

870


hi Set myobj=Description.Create() myobj("type").value="submit" myobj("name").value="google search" myobj("html tag").value="button" browser("title:=google").page("title:=google").webButton (myobj).Click i was running above code in one weak back it was working fine i got result,again i opened after few days ,again i was trying to run the code it shows run time error in last line of my code ,why ?pls answer my question?

2140