MuraliKola / robotframework-seleniumlibrary

Automatically exported from code.google.com/p/robotframework-seleniumlibrary
Apache License 2.0
1 stars 0 forks source link

TABLE size #203

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello everybody.

My issue is to get the number of columns and rows of a table who is name is 
xpath.
How do i do this plz ?

Thanks.

Mickael

Original issue reported on code.google.com by mickaelp...@gmail.com on 20 Sep 2011 at 7:59

GoogleCodeExporter commented 8 years ago
Note that this is a tracker for bug reports and enhancement requests. General 
discussion and questions should be submitted to the mailing list: 
http://groups.google.com/group/robotframework-users/

That said, I think that you can use XPaths like these

${rows}= | Get Matching XPath Count | //table[id="myTableId"]/tr |
${cols}= | Get Matching XPath Count | //table[id="myTableId"]/tr/td |

to get number of rows and cols. (These do not work with nested tables, though)

Original comment by janne.t....@gmail.com on 17 Oct 2011 at 5:11