public static boolean isChrome() {
        Capabilities cap = getCapabilities();
        return "Chrome".equalsIgnoreCase(cap.getBrowserName());
    }
Is the current WebDriver a Chrome driver?

@return true if Chrome, false if any other browser
primefaces-selenium/primefaces-selenium-core/src/main/java/org/primefaces/selenium/PrimeSelenium.java