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 write a general script which should does the
following
a). If a page object is given, it should identify the page
object of the corresponding page(site).
b). It should identify all the links of that particular
page.
in QTP tool?

Answers were Sorted based on User's Feedback



How to write a general script which should does the following a). If a page object is given, it ..

Answer / arun

if page object is given then..

eg> set pgObj = browser(yahoo).page(yahoo)
pgObj - is the page object

Answers:
1. we can check for the page as follows
tmpPageName = pgObj.getroproperty("name")
if tmpPageName = "Yahoo" then
msgbox "Found the page"
else
msgbox "Page Not found"
end if

2. Need to use description.create function

set descObj = description.create
descObj("micclass").value ="link"
set lnkObj = pgObj.childobjects(descObj)
msgbox lnkObj.count '// This will give you number of links
found in that page

Is This Answer Correct ?    5 Yes 2 No

How to write a general script which should does the following a). If a page object is given, it ..

Answer / isha menon

I dont know the rite answer for this question,. But this
question will be very much useful to know more about the
main testing tool QTP,.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More VB Script Interview Questions

what is the purpose of the Reporter.ReportEvent in QTP and also please give the brief description about Reporter.ReportEvent ?

4 Answers   CybAge,


1) How can we use VB script in testing the application? 2) What all are the things(Software application to be installed in PC) we need to learn VBscript?

0 Answers  


When inserting strings into a SQL table in ASP what is the risk and how can you prevent it?

1 Answers  


Write a VB Script to count blank Lines in a notepad

2 Answers   IBM,


Mention what is vbscript procedures?

0 Answers  


Mention how you can call vbscript functions?

0 Answers  


how to check whether link is disabled in QTP??

0 Answers  


What is difference between vbscript and vba?

0 Answers  


am giving to one number u can set into that in date format.u can use any methods

1 Answers   HP,


How to find the font in qtp. Scenario:After entering the username and passwd you will be navigate into the "welcome:Username" page.Now I want to extarct font for this message.

0 Answers   GE, iGate,


does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks

0 Answers  


What is vbscript procedures?

0 Answers  


Categories