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
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 |
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 |
what is the purpose of the Reporter.ReportEvent in QTP and also please give the brief description about Reporter.ReportEvent ?
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?
When inserting strings into a SQL table in ASP what is the risk and how can you prevent it?
Write a VB Script to count blank Lines in a notepad
Mention what is vbscript procedures?
Mention how you can call vbscript functions?
how to check whether link is disabled in QTP??
What is difference between vbscript and vba?
am giving to one number u can set into that in date format.u can use any methods
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.
does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks
What is vbscript procedures?