How can i open 5 multiple browser at once through QTP VB
script and i want to login with 5 different credentials i
already tried with this code but its entering credentials
only for first browser and am using datatable to
parameterize
Answers were Sorted based on User's Feedback
Answer / ruby
For i = 1 to 5
SystemUtil.Run "iexplore","www.gmail.com"
Next
For i = 0 to 4
Browser("title:=Google","Creationtime:=" & i).Page("title:=Google").WebEdit("name:=Usname").Set Datatable("Username")
Browser("Title:=Google","Creationtime:=" & i).Page("title:=.*").WebEdit("name:=Pwd").Set Datatable("Password")
Browser("Creationtime:=" & i).Page("title:=.*").WebButton
("name:=Submit").Click
Next
Is This Answer Correct ? | 1 Yes | 0 No |
Using Data parameterization, we can do that or in other
purpose also
Method1:
var_RowCount = DataTable.GetSheet("Action1").GetRowCount
For i = 1 to var_RowCount
DataTable.SetCurrentRow(i)
SystemUtil.Run "iexplore","www.abcd.com"
uname = DataTable("Username",dtLocatSheet)
psd = DataTable("Password",dtLocatSheet)
Browser("index:=0").Page("title:=.*").WebEdit
("name:=Usname").Set uname
Browser("index:=0").Page("title:=.*").WebEdit
("name:=Pwd").Set psd
Browser("index:=0").Page("title:=.*").WebButton
("name:=Go").Click
Next
Method2:
For i = 1 to 5
SystemUtil.Run "iexplore","www.abcd.com"
Next
For i = 1 to 5
Browser("index:=" & i).Page("title:=.*").WebEdit
("name:=Usname").Set uname
Browser("index:=" & i).Page("title:=.*").WebEdit
("name:=Pwd").Set psd
Browser("index:=" & i).Page("title:=.*").WebButton
("name:=Go").Click
Next
Is This Answer Correct ? | 2 Yes | 3 No |
plz explain QTP real time work( Means where you store scripts and how u access scripts next day? where those activities we are maintaining, If By usig VSS how the process in going on , plz explain briefly?
How many lines of code in each script of QTP?
Wher to use DATA TABLE METHODS in Qtp?What is the use of it?
hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check "want" is their in the text or not ?
Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out
Describe the process for writing text check point for a web application?
terminal services client
Without integrating QC/Testdirector with QTP, is it possible to keep track of the defects?If yes how? How to export QTP results to an excel sheet?
Hi Recently I Attend one interview .The intervier ask on Question in QC 9.2 . The Qus was while ruuning the Batch RUNS scripts in test lab if defect will comes .The defect automaticly wants to genate . How to Configure in QC . Thank You Balaji
how to get no.of non empty rows in a excel sheet through vb-script
Whenever we r keeping mouse pointer under the image we r getting image name. In qtp how can we do this thing.weather that name is coming or not?
how i can get the value of label box , please any body tell me script of that code