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 |
DEFECT LIFE CYCLE,WHO PUT THE STATUS AS OPEN
Could any one explain about the nested actions in QTP? This question is asked by Qualitree and CA
3 Answers CA, Qualtree Solutions,
What are the benefits of quick test pro(qtp)?
How to get align property of the link on web page?
what are inputs for automation?
In a shared Object Repository in QTP if some object is changed how can the other script which is using the same object can be known
hi friends i was tried to connect qtp with oracle database using provider.i got a error.so anyone can help me out by correct script
what is the mail use of frame work(with detail). architecture for keyword driven frame work
what is the silent mode in WR?
What are the various types of Actions in UFT?
If u prepare bug report in Excel sheet . Is it possible to send thrw Test director? how it is?
How to test fly out menu in qtp?