03-03-2010, 12:16 PM
Hi,=====================================================
Error:
Code:
I am trying to capture run time values from a table using output values and storing them in the global data table, but it captures the value of first iteration of loop only and throws the error on further iterations. Please correct me on where i am doing wrong, my code is given below:
Dim i, n
'rowcount = DataTable.GetSheet("SearchJournal").GetRowCount
rowcount = 3
For i=1 to rowcount
DataTable.SetCurrentRow(i)
Browser("Acquisition Database").Page("Acquisition Database").WebEdit("ctl00$cphMain$txtJournalID").Set DataTable("JournalID", dtLocalSheet)
Browser("Acquisition Database").Page("Acquisition Database").WebButton("Search Acquisition").Click
Dim J_ID, Acq_ID
J_ID=DataTable("JournalID",dtLocalSheet)
Browser("Acquisition Database").Page("Acquisition Database").WebElement("1 Records Displayed").Check CheckPoint("1 Records Displayed")
Browser("Acquisition Database_2").Page("Acquisition Database").WebElement("Journal ID").Output CheckPoint("Journal ID")
Acq_ID = DataTable("Acquisition_ID", dtGlobalsheet)
Msgbox (Acq_ID)
'
Next
Error: