I am testing a Website thelancet and create a description
for searching "health" in search edit box.But my description
failed on last two lines.Can anybody solve this

Answer Posted / nittinengineer

Dim URL: URL = "http://www.thelancet.com/"

Set obj_WebBrowser = Description.Create
obj_WebBrowser ("micclass").value = "Browser"
obj_WebBrowser ("name").value = ".*Microsoft Internet
Explorer"
obj_WebBrowser ("application version").value="internet
explorer 8"
obj_WebBrowser ("LocationURL").value = URL & ".*"
obj_WebBrowser ("openurl").value= URL & ".*"

Set obj_WebPage = Description.Create
obj_WebPage ("micclass").value = "Page"


Dim Search
Dim ObjWebEdit
Dim ObjWebttn
Dim GoBttn
Set Search=Description.Create
Set ObjWebEdit=Description.Create
Set ObjWebttn=Description.Create
Set GoBttn=Description.Create
Search("micclass").value="WebEdit"
Search("name").value="searchTerm"
ObjWebEdit("micclass").value="WebEdit"
ObjWebttn("micclass").value="WebButton"
GoBttn("micclass").value="WebButton"
GoBttn("html tag").value="INPUT"
GoBttn("type").value="submit"

Browser(obj_WebBrowser).Page(obj_WebPage).ObjWebEdit(Search).set"Health"
Browser(obj_WebBrowser).Page(obj_WebPage).ObjWebttn(GoBttn).Click




Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does quicktest professional is unicode compatible?

511


What test cases can you automate using QTP?

638


What is the difference between the keyword view and expert view?

521


what is the hierarchy to use properties in descriptive programming

1494


tell me QTP standards ?plz

1510






Explain the check points in quicktest professional (qtp)?

552


How do you convert manual test cases to automated test cases?

571


How QTP support all types of applications (platforms)?

4071


can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?

1681


what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana

1458


what is output value in QTP and how it can be used in automation testing

1432


What is meant by Step generator?what is the use of this? we have 3 steps know there what r all those.? can u all pls give me clear idea of this

1398


How to use conditional loops in qtp ?

581


What are the advantages of a Hybrid framework?

595


Write a QTP script to enter a keyword in to Google search engine?

649