12-08-2009, 06:46 PM
Hi
Itried the code given by Nilesh, but i am facing problem like not able to identify the Object. So i just want to explain the Table and id's defined as there is no permission for me to attach the screen shot. I apolize for that.
The main Table is defined by the id:_ct10_cphContent_downloadAspxGrid_DXMainTable
Headers in the Table are defined as id : _ct10_cphContent_downloadAspxGrid_DXHeaderRow
The columns in the table are defined by id : _ct10_cphContent_downloadAspxGrid_DXTScol3(3-12)
The Rows are Defined as id : _ct10_cphContent_downloadAspxGrid_DXDataRow0(0-9)
Below is the summary to give the count and it is defined as
id : _ct10_cphContent_downloadAspxGrid_DXPageBottom.
The code used by me:
Before writing this code i have whole page to the repositary.Even then when i am executing this code it shows an error.Please some one help me...
Itried the code given by Nilesh, but i am facing problem like not able to identify the Object. So i just want to explain the Table and id's defined as there is no permission for me to attach the screen shot. I apolize for that.
The main Table is defined by the id:_ct10_cphContent_downloadAspxGrid_DXMainTable
Headers in the Table are defined as id : _ct10_cphContent_downloadAspxGrid_DXHeaderRow
The columns in the table are defined by id : _ct10_cphContent_downloadAspxGrid_DXTScol3(3-12)
The Rows are Defined as id : _ct10_cphContent_downloadAspxGrid_DXDataRow0(0-9)
Below is the summary to give the count and it is defined as
id : _ct10_cphContent_downloadAspxGrid_DXPageBottom.
The code used by me:
Code:
Browser("Company Downloads").Page("Company Downloads").WebList("_ctl0:cphContent:searchFilterC").Select "Last 30 Days"
Browser("Company Downloads").Page("Company Downloads").WebButton("Search").Click
for i=0 to Browser("Company Downloads").Page("Company Downloads").Frame("_ct10_cphContent_downloadAspxGrid_DXMainTable").WebTable("_ct10_cphContent_downloadAspxGrid_DXPageBottom").RowCount
If Browser("Company Downloads").Page("Company Downloads").Frame("_ct10_cphContent_downloadAspxGrid_DXMainTable").WebTable("_ct10_cphContent_downloadAspxGrid_DXTcol11").GetCellData(i, 11)="Matched" Then
Flag=True
Else
Flag=False
End If
Next