Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help - working with Web Radio Buttons
#3
Solved: 11 Years, 4 Months ago
Thanks for the quick response Ankur.
I updated my code based on ur suggestions.. as follows.

Code:
Function ValidateFields()
   On Error Resume Next
   Dim intIndex , intRowCt,  intColCt, oTableObj,var_index, var_cols , intcount
   Set oPage = Browser("xyz").Page("xyz")
    intIndex = GetIndex("WebTable", oUSTPage)
   Set oTableObj = oPage.WebTable("Index :="&intIndex , "html tag:=TABLE ", "name:=WebTable") //Statement 1
var_col1 = oTableObj.CokumnCount(1)
var_col2 = Browser("xyz").Page("xyz").WebTable("x").ColumnCount(1) //Statement 2
End Function

Here , var_col2 is returning correst response and var_col1 is returning 'empty'
In statement 2 above, the webTable -x has been added to Object repository and has the properties -html tag and index .And Smart Identification has been enabled (but not used )

In Statement 1 , I am using the exactly same properties to describe the object, but QTP returns - too many objects found with the same properties. I then added another property -"name" and I am still getting the same error. My GetIndex function is returning the correct value of index.

Could you please advise why the object is not identified in Statement 1 here?

Thanks much!
Reply


Messages In This Thread
RE: Need help - working with Web Radio Buttons - by newuser001 - 02-14-2008, 01:47 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP 11 is unable to recognize prime faces components ,for ex: List and radio butt pradeep singh 8 7,015 02-27-2013, 04:42 PM
Last Post: pradeep singh
  How to click a radio button inside a webtable silpavinod 9 13,690 01-24-2013, 04:09 PM
Last Post: vishalu.vs
  Capturing lines between java buttons cowboy49 0 1,759 08-19-2012, 04:52 AM
Last Post: cowboy49
  QTP Opens a popup window but won't recognize the buttons in the window Blaster0007 4 7,873 07-20-2012, 12:03 AM
Last Post: sree.85
  Radio Buttons petes85gt 0 3,360 02-22-2012, 03:41 AM
Last Post: petes85gt

Forum Jump:


Users browsing this thread: 2 Guest(s)