02-13-2008, 02:31 AM
(This post was last modified: 02-13-2008, 04:24 AM by newuser001.)
Hi,
I am using Version 9.1 of QTP and working on Web Applications using IE as the browser. I have the following 1 questions..
1) When I log into an application, a page is displayed having WebradioButton Group (there are 2 radio buttons on the page with the same "name") and one of the buttons is selected by default (the first of the two) . I want to verify that the first radio button IS indeed selected. How can I do this? Is there any function/method to check this?
2) I have a WebTable (say 'x') in my application .. (The application actually contains many nested tables ). I have not added the 'x' object to my object repository. I have the following function in my code.. I am not able to retrieve the rowcount and columncount for the table.
Please advise
Thanks.
Question 2 cont..
I tried adding the Web Table to the object repository too, Since Rowcount , and ColumnCount are test object properties. Still I cannot retrieve the valuesfor rowcount and columncount. Please advise!
I am using Version 9.1 of QTP and working on Web Applications using IE as the browser. I have the following 1 questions..
1) When I log into an application, a page is displayed having WebradioButton Group (there are 2 radio buttons on the page with the same "name") and one of the buttons is selected by default (the first of the two) . I want to verify that the first radio button IS indeed selected. How can I do this? Is there any function/method to check this?
2) I have a WebTable (say 'x') in my application .. (The application actually contains many nested tables ). I have not added the 'x' object to my object repository. I have the following function in my code.. I am not able to retrieve the rowcount and columncount for the table.
Code:
'Function ValidateFields(oPage)
On Error Resume Next
Dim intIndex , intRowCt, intColCt, oTableObj
intIndex = GetIndex("WebTable", oPage) 'Returns the index of the table 'x'
Set oTableObj = oPage.WebTable("index :="&intIndex , "html tag:=TABLE ")
intRowCt = oTableObj.RowCount 'does not return row count of table 'x'
intColCt = oTableObj.ColumnCount(1) 'does not return column count of table 'x'
..
'End Function
Please advise
Thanks.
Question 2 cont..
I tried adding the Web Table to the object repository too, Since Rowcount , and ColumnCount are test object properties. Still I cannot retrieve the valuesfor rowcount and columncount. Please advise!