@ SuppressWarnings ( "squid:S1168" ) public Element tableRows ( ) { if ( ! element . is ( ) . present ( ) ) { return null ; // returning an empty array could be confused with no rows } if ( ! element . is ( ) . table ( ) ) { return null ; // returning an empty array could be confused with no rows } return element . findChild ( app . newElement ( Locator . TAGNAME , "tr" ) ) ; }
Retrieves the rows in the element . If the element isn t present or a table a null value will be returned . The rows will be returned in one element and they can be iterated through or selecting using the setMatch method