10-30-2009, 02:43 PM
Hi
I am automating a webapplication,
where i need to work on a web table which is unable another web table.
the web table is dynamic web table it is having more than 10 columns and in row it will display as per the data available.
but when i do the row count and columncount
it is displaying 4 rows and 2 columns
with getcelldata(2, 2)
it is displaying all columns
for ex: i am having col1, col2, col3, col4
getcelldata(2, 2) is displaying all the columns in a single location 2 row and 2 column col1, col2, col3, col4,
if i do the getcelldata(3, 2) all the data available in the table is displayed in the same location like below...
col1name1name2col2address1address2col3address3address4 etc
i want to clik on the checkbox in the firt column based on the data in the table.
There are three tables in a page
1. Item
2. Statement 1
3. Cashbook
statement and cashbook is within the Item table
when i spy any item in the statement table it will show the hirarchy will be
browser
.......page
..........module
................item
.......................Statement
.................................webelement
with GUI spy it is only showing the item and statement table and the webelement.
it is not showing the table underneth statement
Please find the attachment of web page
and the results of the statements of both the tables
Please help me is there solution ASAP.
I am automating a webapplication,
where i need to work on a web table which is unable another web table.
the web table is dynamic web table it is having more than 10 columns and in row it will display as per the data available.
but when i do the row count and columncount
Code:
browser().page().frame().webtable().rowcount
browser().page().frame().webtable().columncount(1)
with getcelldata(2, 2)
it is displaying all columns
for ex: i am having col1, col2, col3, col4
getcelldata(2, 2) is displaying all the columns in a single location 2 row and 2 column col1, col2, col3, col4,
if i do the getcelldata(3, 2) all the data available in the table is displayed in the same location like below...
col1name1name2col2address1address2col3address3address4 etc
i want to clik on the checkbox in the firt column based on the data in the table.
There are three tables in a page
1. Item
2. Statement 1
3. Cashbook
statement and cashbook is within the Item table
when i spy any item in the statement table it will show the hirarchy will be
browser
.......page
..........module
................item
.......................Statement
.................................webelement
with GUI spy it is only showing the item and statement table and the webelement.
it is not showing the table underneth statement
Please find the attachment of web page
and the results of the statements of both the tables
Please help me is there solution ASAP.