Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding data into rows that add dynamically with setcelldata
#1
Not Solved
I have an issue adding data into rows that add dynamically in wbfgrid

Here is the scenario,

Add data into 1st row(webtable) and click.
Add data into 2nd row (now it automatically turns to wbfgrid) - these rows are dynamically added if we have data

to be entered.
Add data into 3rd row (now it automatically turns to wbfgrid)


If I use For or Do loop, it will iterate and add data into the first row itself. And will not enter data into the

2nd row and 3rd & so on....


Please help me on this on how to enter data in different rows using For or Do Loop.

Here is the code.


'___________________________________________________________________________________________

Code:
Set Fr1 = Browser("Browser").Page("Page").Frame("Frame_3")


'1sr row (exist by default)- webtable

Fr1.WebEdit("dgService:_ctl2:txtdosfrom").Set "07/15/10"
Fr1.WebButton("Button").Click
Fr1.WebEdit("dgService:_ctl2:txtdosto").Set "07/15/10"
Fr1.WebButton("Button").Click
Fr1.WebEdit("dgService:_ctl2:txtlocation").Set "11"
Fr1.WebButton("Button").Click
Fr1.WebEdit("dgService:_ctl2:txtservcode").Set "11301"
Fr1.WebButton("Button").Click
Fr1.WebButton("Button").Click
Fr1.WebEdit("dgService:_ctl2:txtFee").Set "110.00"
Fr1.WebButton("Button").Click
Fr1.WebEdit("dgService:_ctl2:txtBilledUnits").Set "1"
Fr1.WebButton("Button").Click
Fr1.WebButton("Button").Click
Fr1.WebEdit("dgService:_ctl2:txtDiagnosis").Set "1"
Fr1.WebButton("Button").Click
Fr1.WebEdit("dgService:_ctl2:txtStatus").Set "OKAY"
Fr1.WebEdit("dgService:_ctl2:txtStatus").Submit



'2nd row - row is added dynamically upon click or enter - changes from webtable to wbfgrid

Fr1.WbfGrid("dgService_DT_1283368952689").SetCellData 2,3,"07/15/10"
Fr1.WebButton("Button").Click
Fr1.WebButton("Button").Click
Fr1.WbfGrid("dgService_DT_1283368952689").SetCellData 2,4,"07/15/10"
Fr1.WebButton("Button").Click
Fr1.WbfGrid("dgService_DT_1283368952689").SetCellData 2,5,"11"
Fr1.WebButton("Button").Click
Fr1.WbfGrid("dgService_DT_1283368952689").SetCellData 2,6,"11300"
Fr1.WebButton("Button").Click
Fr1.WbfGrid("dgService_DT_1283368952689").SetCellData 2,8,"51"
Fr1.WebButton("Button").Click
Fr1.WbfGrid("dgService_DT_1283368952689").SetCellData 2,9,"80.00"
Fr1.WebButton("Button").Click
Fr1.WbfGrid("dgService_DT_1283368952689").SetCellData 2,10,"1"
Fr1.WebButton("Button").Click
Fr1.WebButton("Button").Click
Fr1.WbfGrid("dgService_DT_1283368952689").SetCellData 2,22,"1"
Fr1.WebButton("Button").Click
Fr1.WebButton("Button").Click
Fr1.WbfGrid("dgService_DT_1283368952689").Submit
Fr1.WebButton("Button").Click


'3rd row - row is added dynamically upon click or enter

Fr1.WbfGrid("dgService_DT_1283368993752").SetCellData 3,3,"07/15/10"
Fr1.WebButton("Button").Click
Fr1.WbfGrid("dgService_DT_1283368993752").SetCellData 3,4,"07/15/10"
Fr1.WebButton("Button").Click
Fr1.WbfGrid("dgService_DT_1283368993752").SetCellData 3,5,"11"
Fr1.WebButton("Button").Click
Fr1.WbfGrid("dgService_DT_1283368993752").SetCellData 3,6,"11300"
Fr1.WebButton("Button").Click
Fr1.WbfGrid("dgService_DT_1283368993752").SetCellData 3,8,"51"
Fr1.WebButton("Button").Click
Fr1.WbfGrid("dgService_DT_1283368993752").SetCellData 3,9,"80.00"
Fr1.WebButton("Button").Click
Fr1.WbfGrid("dgService_DT_1283368993752").SetCellData 3,10,"1"
Fr1.WebButton("Button").Click
Fr1.WbfGrid("dgService_DT_1283368993752").SetCellData 3,22,"1"
Fr1.WebButton("Button").Click
Fr1.WbfGrid("dgService_DT_1283368993752").Submit
Reply


Messages In This Thread
Adding data into rows that add dynamically with setcelldata - by azar81 - 09-14-2010, 11:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT issues with Outsystems dynamically generated Id/names jherron 2 1,355 03-02-2020, 09:33 PM
Last Post: Swishy70
  Multiple rows of test data Bhuvana 0 1,341 01-03-2020, 09:30 PM
Last Post: Bhuvana
  Unable to capture value of Webelement which is changing dynamically sheetal 9 16,233 02-16-2018, 11:01 AM
Last Post: janki_kakadia
  Pages and Frames adding _1, _2, _3... zunebuggy 1 1,667 05-30-2017, 12:17 AM
Last Post: Vichu M J
  Unable to click on dynamically changing webelement preeti 0 1,812 04-29-2017, 08:50 PM
Last Post: preeti

Forum Jump:


Users browsing this thread: 3 Guest(s)