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



I am testing a Website thelancet and create a description for searching "health" in searc..

Answer / 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

More QTP Interview Questions

Hi guys can any plz help me how to send fax in sample Flight Appication

1 Answers  


What is parameter in qtp?

0 Answers  


What are the Features & Benefits of Quick Test Pro ?

1 Answers   Crea,


write script for , launching fr window,login and create 5 elements array and store 5 order numbers inthat array? and open order by using order no.s in array and find out maximum tickets booked by which order?

1 Answers   TCS,


Why is action split used by qtp?

0 Answers  






How to capture screen shots when an error occurs?

2 Answers  


How to run a test using quicktest professional (qtp)?

0 Answers  


What is Description Object?

1 Answers  


how can we test load time of an page in webtesting?

3 Answers   Ordain Solutions,


how you have used object libraries? plzzzzz do answer

1 Answers  


What are different types of frame works ?

3 Answers  


Explain the Load testing process?

1 Answers   Crea,


Categories