Micro Focus QTP (UFT) Forums
Issue with clicking a radiobutton in a table - 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: Issue with clicking a radiobutton in a table (/Thread-Issue-with-clicking-a-radiobutton-in-a-table)



Issue with clicking a radiobutton in a table - eltee - 03-18-2011

ISSUE: I want to click on the radiobox on the third row of the table based on the "Sitename" value passed as an argument - for all the 4 tabs - Access Pricing, Port Pricing, CPE Pricing, Miscellaneous Pricing - on the application page [Screenshot attached]

WHAT WORKS: It works only for Access Pricing tab
WHAT DOESNT WORK: The remaining tabs
ERROR: rows = -1 is shown as the value for the remaining tabs when debugged (line number 3)

Code:

Code:
Classic_Sitename = DataTable.Value("Classic_SiteName", Global)
row = Browser("IPSDK WEB GUI (Search)").Page("Customer Info").Frame("PricingSummary").WebTable(sitetable).GetRowWithCellText(Classic_Sitename)

msgbox row

Set View = Browser("IPSDK WEB GUI (Search)").Page("Customer Info").Frame("PricingSummary").WebTable(sitetable).ChildItem(row,1,"WebRadioGroup", 0)

View.Click

The text (AMSTERDAMBRANCH) appears fine/correctly for all the tabs in the same position(row 3, col 3).

Any idea why this happens?