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
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 |
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 |
Can we record a video in qtp recording??
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???
How to find which type of Framework is suitable for which type of application?
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.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?
wt is playback facilityin qtp?
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.
can u write one user defined function for webedit class.
What is Associate Repository in QTP 9.2 ?
How to capture the text from the application using QTP?