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 |
How do you write an SQL insert statement?
Why to use option explicit in vb script?
Which keyword is used to declare a variable in the vbscript language?
Explain what is loose binding? Why is it not a good practice to use it?
Hellow friends, I am learning QTP,but here problem is VB script. please guide me how to learn VB script w.r.t QTP and if you know any books tell me or if you have any materials or any use full material or any else w.r.t QTP please post me p.p.sekhar
i have to open a notepad having no. of words in dat file by recording in qtp and then find a particular word and display true or false
int a=4857 i need output as 7584.without using any inbuild function?
How can constants be declared in the vbscript language?
If a calulator having 3 buttons (of any number)in 3 of them one is not working properly due to which answer is wrong always. write a script to find out which button is not working properly ?
create a form to accept username and password validate the username and password with using message box, display the corresponding user message
Hi anyone Can Send Solution to the Question wt m posting now Prepare Script for the Bellow Scenario? Login to Gmail Page Open Inbox check Mails save them in a Folder
write a vb script to display the reverse of vbs