06-20-2009, 05:15 PM
Hi everyone,
I need your help in my problem with QTP. I have a web application that contains a table with many text fields. The problem was when it reaches the field just in the middle of the long page, the script does not recognize the field and it immediately goes to the next field.
Here's the code on how I populate the table with data. I also provide the screenshot.
I need your help in my problem with QTP. I have a web application that contains a table with many text fields. The problem was when it reaches the field just in the middle of the long page, the script does not recognize the field and it immediately goes to the next field.
Here's the code on how I populate the table with data. I also provide the screenshot.
Code:
varPriceFieldsTable_Exist = Browser("P&G Customer Portal QA").Page("Form Fields Selection").WebTable("Price Fields").Exist(300)
intRow = DataTable.GetSheet(dtLocalSheet).GetRowCount
For i = 2 to intRow
DataTable.GetSheet(dtLocalSheet).SetCurrentRow(i)
Set objPriceColumn = Browser("P&G Customer Portal QA").Page("Form Fields Selection").WebTable("Price Fields").ChildItem(i, 2, "WebEdit",0)
objPriceColumn.Set DataTable("Column",dtLocalSheet)
Set objPriceRow = Browser("P&G Customer Portal QA").Page("Form Fields Selection").WebTable("Price Fields").ChildItem(i, 3, "WebEdit",0)
objPriceRow.Set DataTable("Row",dtLocalSheet)
Next