public String getWidgetValue() {
        return PrimeSelenium.executeScript("return " + getWidgetByIdScript() + ".getValue();");
    }
Client side widget method to get the current value.

@return the current value
primefaces-selenium/primefaces-selenium-components/src/main/java/org/primefaces/selenium/component/InputMask.java