Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Output Values on a Table Cell in a Loop
#1
Not Solved
Hi,
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:
Reply


Messages In This Thread
Output Values on a Table Cell in a Loop - by geet - 03-03-2010, 12:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How import final calculated values by cell formula from Excel not the formula itself. qtped 1 4,852 01-17-2017, 04:05 PM
Last Post: sagar.raythatha
  Output Values error Tasleem 3 3,926 10-27-2014, 02:13 PM
Last Post: Tasleem786
  Way to take values from datasheet and output Fairbanks 3 3,117 03-27-2014, 07:18 PM
Last Post: Ankur
  FOR LOOP shayk1985 1 5,301 12-13-2012, 11:35 AM
Last Post: sams001
  Output value oracle form QAVA 2 3,722 11-30-2012, 03:09 AM
Last Post: QAVA

Forum Jump:


Users browsing this thread: 2 Guest(s)