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 modular framework?

0 Answers   HCL,


I want write ISTQB exam . Please inform me where is the centre in this exam in Kerala? Is there any exam centre in Trivandrum.(Fees, Date,Time,Centre)

1 Answers  


Can you tell me what was your last/ current project? What exact tasks were you responsible for? Give details in terms of testing done and tools used if any.? I need sample answers to this very major and important question. As detailed as possible. Thanks

0 Answers   Genesis,


What is criticality?

0 Answers  


Daily howmany bugs will you find and what types are they?

4 Answers   Accenture,






In which order should tests be run?

0 Answers  


Explain 'Software metrics'?

1 Answers   TCS,


What are the common mistakes which create issues?

0 Answers  


What is parameter?

0 Answers  


what is trigger? What is stored procedures? What is a cursor?

2 Answers   SumTotal,


what are the main bugs which were identified by you and in that how many are considered as real bugs?

1 Answers   Accenture,


What is compliance testing ?

0 Answers  


Categories