public static void isValidXpath ( String locator ) { logger . entering ( locator ) ; Preconditions . checkArgument ( StringUtils . isNotBlank ( locator ) , INVALID_LOCATOR_ERR_MSG ) ; if ( locator . startsWith ( "xpath=/" ) || locator . startsWith ( "/" ) ) { throw new UnsupportedOperationException ( "Use xpath dot notation to search for Container descendant elements. Example: \".//myLocator\". " ) ; } logger . exiting ( ) ; }
Validates a child locator to have the xpath dot notation .