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
#2
Not Solved
HI Geet,

Just change the statement as given below in your code.
Code:
DataTable.GetSheet("SearchJournal").SetCurrentRow(i)
Reply
#3
Not Solved
what is the error that you receive?

Reply
#4
Not Solved
"Can not identify the object "Journal Id" (of class Web Element). Verify that this object's properties match an object currently displayed in your application.
Line 16:
Code:
Browser("Acquisition Database_2").Page("Acquisition Database").WebElement("Journal ID").Output CheckPoint("Journal ID")
Reply


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,861 01-17-2017, 04:05 PM
Last Post: sagar.raythatha
  Output Values error Tasleem 3 3,941 10-27-2014, 02:13 PM
Last Post: Tasleem786
  Way to take values from datasheet and output Fairbanks 3 3,135 03-27-2014, 07:18 PM
Last Post: Ankur
  FOR LOOP shayk1985 1 5,309 12-13-2012, 11:35 AM
Last Post: sams001
  Output value oracle form QAVA 2 3,726 11-30-2012, 03:09 AM
Last Post: QAVA

Forum Jump:


Users browsing this thread: 2 Guest(s)