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 |
what is the script to select 2 or more than 2 options from a listbox.
What is the concept of firewalls?
In a QTP project lets say there are 100+ function library and incorrectly we have duplicate some function in multiple libraries. How to find those duplicate functions and remove them?
How to connect to oracle(sqlserver) database to QTP
how to pripare BRS/FRS Document for different projects?
Basically why we need testing?
Syntact for how to call one script from another? and Syntax to call one "Action" in another?
Suppose there are 10 browsers opened on desktop. I want to close all browsers except one browser in QTP. Can any one give the code for this?
How to Save your test using QTP?
hi i have one issue while coding the dates . i want to add the date curret to 4 days . can any one helme plz about this regards balaji
How to check which add-ins are associated with a test in qtp?
I have application it is one digital clock with all minutes and seconds. you have to identify the time to verify weather the time displayed is correct time or not? How do you automate this scenario?