Micro Focus QTP (UFT) Forums
QTP Skips text field in the middle of the page - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: QTP Skips text field in the middle of the page (/Thread-QTP-Skips-text-field-in-the-middle-of-the-page)



QTP Skips text field in the middle of the page - motherkim - 06-20-2009

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.

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