Set a=description.Create
a("name").value="Google"
Set b=description.Create
b("Title").value="Google"
Set c=description.Create
c("micclass").value=" webedit"
'c("name").value="q"
'c("type").value="text"
'Set d=description.Create
'd("name").value="q"
Set e=description.Create
e("micclass").value="webbutton"
e("name").value="Google Search"
Set h=description.Create
h("name").value="qtp - Google Search"
Set desc=description.Create
desc("micclass").value="webelement"
desc("type")="qtp"
Set l=description.Create
l("title").value="qtp - Google Search"
'invokeapplication"C:\Program Files\Internet
Explorer\IEXPLORE.EXE","http://www.google.co.in/"
invokeapplication"C:\Program Files\Internet
Explorer\IEXPLORE.EXE"
Browser(a).Page(b).WebEdit(c).set"qtp"
Browser(a).Page(b).WebButton(e).click
set z=Browser(h).Page(l).childobjects(desc)
i=z.count
print i
'For j=0 to i -1
' m=z(j).getroproperty("text")
' msgbox m
' print m
'
'Next
hi guys this is anil. i am beginner in advance qtp. i am
trying to write script for searching web element (QTP)in
google. i have posted a script plz check it. send me
solution how to write scripting for search and counted no
qtp word in google search . plz tell me the solution ASAP
No Answer is Posted For this Question
Be the First to Post Answer
What is WWPN and WWNN?
What is system?
What all can be included in white box testing?
What are enter & exit criterias of a test paln?
Evaluation?
The purpose of which is to allow specific tests to be carried out on a system or network that resembles as closely as possible the environment where the item under test will be used upon release?
Why are static testing and dynamic testing described as complementary?
What r all the risks u r facing while doing a project?
Explain fault?
What is ieee - institute of electrical and electronics engineers?
Mention what bottom-up testing is?
What is the purpose of a test completion criterion?