04-12-2012, 11:58 AM
use the below code:
Code:
Browser("Xtra login page").Page("XTRA login page").WebEdit("userName").Set "Alex"
Browser("Xtra fake login page").Page("XTRA login page").WebEdit("userName").Submit
iRows=DataTable.getrowcount
For i=1 to iRows
DataTable.SetCurrentRow(iRow)
Browser("XTRA login page").Page("XTRA login page").Link("Manage Customer").Click
Browser("XTRA login page").Page("XTRA").WebButton("Create New").Click
Browser("XTRA login page").Page("XTRA").WebEdit("customerid").Set DataTable("CustomerID", dtGlobalSheet)
Browser("XTRA login page").Page("XTRA").WebEdit("name").Set DataTable("UserName", dtGlobalSheet)
Browser("XTRA login page").Page("XTRA").WebEdit("telephone").Set DataTable("TelePhone", dtGlobalSheet)
Browser("XTRA login page").Page("XTRA").WebEdit("email").Set DataTable("Email", dtGlobalSheet)
Browser("XTRA login page").Page("XTRA").WebEdit("address1").Set DataTable("Address", dtGlobalSheet)
Browser("XTRA login page").Page("XTRA").WebEdit("zipCode").Set DataTable("ZipCode", dtGlobalSheet)
Browser("XTRA login page").Page("XTRA").WebEdit("city").Set DataTable("City", dtGlobalSheet)
Browser("XTRA login page").Page("XTRA").WebList("countryCode").Select DataTable("Country", dtGlobalSheet)
Browser("XTRA fake login page").Page("XTRA").WebButton("Save & Close").Click
Next