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
Does quicktest professional is unicode compatible?
What test cases can you automate using QTP?
What is the difference between the keyword view and expert view?
what is the hierarchy to use properties in descriptive programming
tell me QTP standards ?plz
Explain the check points in quicktest professional (qtp)?
How do you convert manual test cases to automated test cases?
How QTP support all types of applications (platforms)?
can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?
what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana
what is output value in QTP and how it can be used in automation testing
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
How to use conditional loops in qtp ?
What are the advantages of a Hybrid framework?
Write a QTP script to enter a keyword in to Google search engine?