public AbstractHtml findOneTagByAttribute ( final AbstractAttribute attribute ) { if ( attribute == null ) { throw new NullValueException ( "attribute cannot be null" ) ; } for ( final AbstractHtml ownerTag : attribute . getOwnerTags ( ) ) { if ( browserPage . contains ( ownerTag ) ) { return ownerTag ; } } return null ; }
Finds one tag by attribute instance .