public Boolean isTopmostElement ( By by ) { if ( ! isTopmostElementCheckApplicable ( by ) ) { return null ; } WebElement topmostElement = findTopmostElement ( by ) ; WebElement element = findElement ( by ) ; return element . equals ( topmostElement ) ; }
Checks if an element is the topmost i . e . not covered by any other element .