public boolean exists ( final AbstractHtml tag ) throws NullValueException , InvalidTagException { if ( tag == null ) { throw new NullValueException ( "tag cannot be null" ) ; } if ( NoTag . class . isAssignableFrom ( tag . getClass ( ) ) ) { throw new InvalidTagException ( "classes like NoTag.class cannot be used to find tags as it's not a logical tag in behaviour." ) ; } return browserPage . contains ( tag ) ; }
Checks the existence of a tag instance .