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

How will you compare keyword and expert view?

541


hi frinds i need help .i have 4 + yrs exp in testing and nearly 2 yrs exp in QTP and QC .currently iam working north fast 2 yrs iam looking for job in south is there any openings plz letme know my mail id is pbre1980@gmail.com

1572


What are the differences between table and db checkpoints?

535


Explain about Test Fusion Report of QTP?

617


Hi iam shankar here, right now iam working on manual testing. i want to switch over automation tool qtp, right now iam taking training class outside on qtp, please let me know the cost of QTP tool for full version, wether it's an annual subscription or monthly subscription.

1712






terminal services client

1789


I would like to directly import XL file and work on that XL file directly in QTp script in that XL sheet need to allocate workbench,XL sheet and generate two bar graphs automatically how to do that? plz let me know any answers?

1567


What is the latest version of qtp?

587


Explain how you can delete excel file in qtp?

593


What are the different types of qtp test assets and their extensions?

600


How to record a qtp script ?

562


Describe how Smart Identification is used

1700


Hi, is it possible for recording shortcut key during record session? The application on which I am working is web based application. This application has several shortcut key associated with menu option. I have succesfully recorded all menu option but unable to record shortcut key.

1393


Mention the test steps of qtp.

542


Hi we are using QTP9.0 for Seibel Application and this seibel application will give you a popup messagebox which is of web , so qtp takes 3 mins to recognize the messagebox and to click on it , we have more number of messageboxes like this . please suggest me some solution

1668