Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Data Table iteration question
#5
Solved: 11 Years, 3 Months, 4 Weeks ago
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
Reply


Messages In This Thread
Data Table iteration question - by on9west - 10-26-2010, 02:53 PM
RE: Data Table iteration question - by KVK - 10-26-2010, 03:12 PM
RE: Data Table iteration question - by on9west - 10-26-2010, 03:35 PM
RE: Data Table iteration question - by hamzaz - 04-12-2012, 11:36 AM
RE: Data Table iteration question - by parminderdhiman84 - 04-12-2012, 11:58 AM
RE: Data Table iteration question - by hamzaz - 04-12-2012, 12:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Object not found during the 2nd iteration of an Action call in a For loop BGunay 0 973 04-23-2020, 07:08 PM
Last Post: BGunay
  UFT Tool runs more than one iteration always cthossain 2 3,749 02-12-2017, 01:25 PM
Last Post: cthossain
  data table use uft_usr 1 2,242 06-29-2016, 05:23 PM
Last Post: Ankesh
  Writing to Run time data table Neetha 5 12,175 08-27-2015, 10:18 AM
Last Post: supputuri
  Function return value is not passed during the 3rd iteration premanand1979 0 2,262 10-16-2014, 09:40 PM
Last Post: premanand1979

Forum Jump:


Users browsing this thread: 1 Guest(s)