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 |
Suppose there are 100 links in a web page and the number of links will be changing dynamically from time to time. I need code such that every time i had to click on the last link of the web page.
What is the expert view?
How to use the object spy in quicktest professional (qtp) 8.0 version?
Inserting a Call to Action is not importing all columns in Datatable of globalsheet. Why?
how to parameterise a test with data base table or excel sheet?
Step 3&4 are repeated until an the object in recognised uniquely.
What is the Major difference between QTP ; LoadRunner? If u want to test an 1. erp module which automation tool you would prefer and why? and 2. for web application, which tool and why?
how to load all resource files(function libraries,object repositories etc) into tests without associating them?
What is object repository?
how can i do QTP Certification can any 1 tell me . How 1 approch and who to approch
Can anybody give the script to addsheet, add column,add values under that column in the rows??
what is the difference between DATA TABLE and DATA SET?