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

please help! Smoke Test Checklist for Gmail

0 Answers  


what is the difference between defect management tool and tesecase managment tool, what are its purpose, does QC and TD use for both(defect &test case managment)

1 Answers  


What is negative and positive testing?

0 Answers  


what is modular framework?

0 Answers   HCL,


What is boundary value?

0 Answers  






Explain test bed?

0 Answers  


Difference b/w QA and QC

3 Answers  


what is the meaning of Field Level Validation & Form Level Validation??

0 Answers  


Mention what the different types of test coverage techniques are?

0 Answers  


What is closed box testing?

0 Answers  


Mention what are the categories of defects?

0 Answers  


can anybody tell me what would be the ideal architecture for java based application and for dot net applications(like what would be the name of the application server,database server,client server etc)in testing environment? its urgent..

0 Answers   Cap Gemini,


Categories