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

I want to install qtp software in my system, My operating system is vista . Anybody please suggest me how to get QTP software with licence key

2 Answers  


What is the limitation to XML Checkpoints?

1 Answers  


I m in new and want to learn QTP. Is any website which provide free QTP video training.....also can downlaod....

3 Answers   Wipro,


In qtp, how you can remove the spaces from string?

0 Answers  


Explain sub procedure of vbscript.

0 Answers  






What is the parameterization? Give one example?

0 Answers  


During execution, how can we capture the data from the pop- up, ie. when any popup comes with some numbers written on it, then how can we capture the value/number that is coming on the pop-up and save in the dynamic file/or other file, even when the run is going on.

2 Answers   Wipro,


Hi i have a webtable which is having 7 columns and 6 rows of data in that table of 4th and 5 th column each row is partiotioned into 3 sub rows i want to verify in each partitioned rows of corresponding row for ex values will be like this 0 / 1 ,26/28.if it is 0/1 i want to skip only if any num/num greater than 1 i want to click.

1 Answers  


write script for finding number of broken links in web page? kindly please answer my question.

3 Answers   Manhattan, Oracle, Virtusa,


What are the advantages of parameterization ?

0 Answers  


How does QTP identify an object?

0 Answers  


what testplan contents and what test strategy contents,what is the diff b/w them

0 Answers  


Categories