Interface Phantom

Index

Properties

Methods

Properties

public args: Array<string>

public cookies: Cookie[]

public cookiesEnabled: boolean

public libraryPath: string

public onError: (msg: string, trace: string[]) => any

public scriptName: string

public version: { major: number; minor: number; patch: number; }

public version.major: number

public version.minor: number

public version.patch: number

Methods

public addCookie(cookie: Cookie): boolean

Parameters

Returns

boolean

public clearCookies()

public deleteCookie(cookieName: string): boolean

Parameters

  • cookieName: string

Returns

boolean

public exit(returnValue?: any): boolean

Parameters

  • returnValue?: any optional

Returns

boolean

public injectJs(filename: string): boolean

Parameters

  • filename: string

Returns

boolean