public static boolean runHeadless ( ) { String headless = getProgramProperty ( HEADLESS ) ; if ( headless == null ) { return false ; } if ( "" . equals ( headless ) ) { return true ; } return "true" . equalsIgnoreCase ( headless ) ; }
Determines if the headless parameter was set to have the browser run in headless mode . This only can be used for Chrome and Firefox .