Add PhantomJS

This commit is contained in:
Jed Hunsaker
2013-02-16 00:21:48 -08:00
parent 0765b9d961
commit d71aeb3dd8
2 changed files with 31 additions and 4 deletions
+26
View File
@@ -0,0 +1,26 @@
/************************************************
* *
* PlantomJS v1.8.0 API *
* *
************************************************/
interface PhantomJSStatic {
// Properties
args: string[]; // DEPRECATED
cookies: any;
cookiesEnabled: bool;
libraryPath: string;
scriptName: string; // DEPRECATED
version: any;
// Functions
addCookie(cookie: any): bool;
clearCookies();
deleteCookie(cookieName: string): bool;
exit(returnValue: any): bool;
injectJs(filename: string): bool;
// Callbacks
onError: Function;
}