Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


i am giving.multiple names like ram,raj,san etc....pls enter & search these names in google pade edit box through script...
i told to interviewer, using Ms excel & test easily..but interviwer not happy with that answer?

Answers were Sorted based on User's Feedback



i am giving.multiple names like ram,raj,san etc....pls enter & search these names in google pade..

Answer / manjunathareddy

SystemUtil.Run "iexplore.exe","www.google.com"

Arr=Array("ram","raj","san")

For i=LBound(Arr) to UBound(Arr)
Browser("name:=Google").Page("title:=Google").WebEdit("name:=q").Set Arr(i)
Browser("name:=Google").Page("title:=Google").WebButton("name:=Google Search","type:=button").Click
Browser("name:=.*").Close
Next

Is This Answer Correct ?    3 Yes 0 No

i am giving.multiple names like ram,raj,san etc....pls enter & search these names in google pade..

Answer / mithuna reddy

Hi Manjunath, done some modifications to your script
please let me know if it is wrong after the first iteration of For loop when the browser object is close the second iteration would throw an error, so I have put SystemUtil in For loop

Arr=Array("ram","raj","san")

For i=LBound(Arr) to UBound(Arr)
SystemUtil.Run "iexplore.exe","www.google.com"
Browser("name:=Google").Page("title:=Google").WebEdit("name:=q").Set Arr(i)
Browser("name:=Google").Page("title:=Google").WebButton("name:=Google Search","type:=button").Click
Browser("name:=.*").Close
Next

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More QTP Interview Questions

Can we record a video in qtp recording??

1 Answers   BirlaSoft,


Is it possible to run qtp scripts in Test Director(Scripts are uploaded in Test director)???and also how to see the test results in test director???

1 Answers  


How to find which type of Framework is suitable for which type of application?

4 Answers   CTS,


i have batch scripts in qtp and i want to update the status like pass/fail in excel sheet after excecuting the every script in batch.how to write the script for this?

1 Answers   IBM,


1.what is the difference between childobjects and child items in qtp? 2.what is difference between a class and function? 3.can u convert ustimings to indian timings using vbscript? 4.i have scripts in one machine.can i run those scripts in another machine.how?

2 Answers   Genpact, Infosys, Symantic Space, TCS,


How to find operating system information using the qtp script?

0 Answers  


wt is playback facilityin qtp?

2 Answers   IBM,


what is defination of system testing?

3 Answers   CodeArrow, Infosys, Omax,


how qtp identify two objects having same name, supose objects are in same page also with same name,specify spl feature.

5 Answers   IGT, Microsoft,


can u write one user defined function for webedit class.

6 Answers   Cap Gemini,


What is Associate Repository in QTP 9.2 ?

0 Answers  


How to capture the text from the application using QTP?

3 Answers  


Categories