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

Post New Answer

More Testing AllOther Interview Questions

What is WWPN and WWNN?

1 Answers  


What is system?

0 Answers  


What all can be included in white box testing?

3 Answers  


What are enter & exit criterias of a test paln?

0 Answers  


Evaluation?

0 Answers  






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?

0 Answers  


Why are static testing and dynamic testing described as complementary?

0 Answers  


What r all the risks u r facing while doing a project?

0 Answers   IBM,


Explain fault?

0 Answers  


What is ieee - institute of electrical and electronics engineers?

0 Answers  


Mention what bottom-up testing is?

0 Answers  


What is the purpose of a test completion criterion?

0 Answers  


Categories