public Collection < AbstractHtml > findTagsByAttribute ( final AbstractAttribute attribute ) throws NullValueException { if ( attribute == null ) { throw new NullValueException ( "attribute cannot be null" ) ; } final Collection < AbstractHtml > tags = new HashSet <> ( ) ; for ( final AbstractHtml ownerTag : attribute . getOwnerTags ( ) ) { if ( browserPage . contains ( ownerTag ) ) { tags . add ( ownerTag ) ; } } return tags ; }
Finds tags by attribute instance .