Dashboard > Selenium > ... > Contributed User-Extensions > getTableRows
Selenium Log In View a printable version of the current page.
getTableRows
Added by Chuck Hill, last edited by Chuck Hill on Feb 14, 2008  (view change)
Labels: 
(None)

Description

Gets the number of rows in a table for use in assert, verify, waitFor, etc.

See the related Selenium IDE Extension.

Example of Use

<table id="tableWith3Rows">
    <tr>
        <td>1</td>
    </tr>
    <tr>
        <td>2</td>
    </tr>
    <tr>
        <td>3</td>
    </tr>
</table>
<table id="tableWithNoRows">
</table>
verifyTableRows tableWith3Rows 3
verifyTableRows tableWithNoRows 0

License

Public domain

Download

getTableRows.zip

Site running on a free Atlassian Confluence Community License granted to OpenQA. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.6 Build:#812 Aug 06, 2007) - Bug/feature request - Contact Administrators