public String getSeleniumScript ( String name ) { String rawFunction = readScript ( PREFIX + name ) ; return String . format ( "function() { return (%s).apply(null, arguments);}" , rawFunction ) ; }
Loads the named Selenium script and returns it wrapped in an anonymous function .