private String getConsoleIconPath ( DesiredCapabilities cap ) { String name = consoleIconName ( cap ) ; String path = "org/openqa/grid/images/" ; InputStream in = Thread . currentThread ( ) . getContextClassLoader ( ) . getResourceAsStream ( path + name + ".png" ) ; if ( in == null ) { return null ; } return "/grid/resources/" + path + name + ".png" ; }
get the icon representing the browser for the grid . If the icon cannot be located returns null .