10-22-2009, 08:28 PM
Hi,
I have tried with Single For loop also but there was no success . Please find the details of my approach which i had used before using a Single For loop to open browsers and login to application :
My Approach :
It takes the User name and password for the first browser and logs into it , but it does not take the user name and password for the other web browsers .I have stored the user name and password in the data table and using for loop I am logging to the browser. Please find the details below:
Note: It is the same browser which i need to open multiple times using different user name and password.
1) I am opening my multiple browsers with the below concept :
2)Next I am setting the current row of data table in a for loop to traverse through the loop and complete my actions . But it does not allow me to log in to next browsers as it does not take user name and password from the data table (it still shows the focus on first row of data table).I am using below concept for this :
Note:
1)How else can I make the focus to the next rows of Datatable other than using DataTable.SetCurrentRow (i) in a for loop.
2)Or how to get the focus to next browsers after logging into first browser.
Regards,
Faisal
I have tried with Single For loop also but there was no success . Please find the details of my approach which i had used before using a Single For loop to open browsers and login to application :
My Approach :
It takes the User name and password for the first browser and logs into it , but it does not take the user name and password for the other web browsers .I have stored the user name and password in the data table and using for loop I am logging to the browser. Please find the details below:
Note: It is the same browser which i need to open multiple times using different user name and password.
1) I am opening my multiple browsers with the below concept :
Code:
For i = 0 to var_RowCount
Set oIE = CreateObject("InternetExplorer.Application")
oIE.visible=true
oIE.navigate "URL" ------ have provided the url of my web browser
Next
2)Next I am setting the current row of data table in a for loop to traverse through the loop and complete my actions . But it does not allow me to log in to next browsers as it does not take user name and password from the data table (it still shows the focus on first row of data table).I am using below concept for this :
Code:
For i = 0 to var_RowCount
DataTable.SetCurrentRow (i)
Browser("index:=i").Page("title").WebEdit("name:=SWEUserName").Set DataTable("User_Name", dtGlobalSheet)
Browser("index:=i").Page("title ").WebEdit("name:=SWEPassword").Set DataTable("Password", dtGlobalSheet)
Browser("index:=i").Page("title ").Image("name:=Image","repositoryname:=LoginButton").click
wait(10)
Next
Note:
1)How else can I make the focus to the next rows of Datatable other than using DataTable.SetCurrentRow (i) in a for loop.
2)Or how to get the focus to next browsers after logging into first browser.
Regards,
Faisal