This repository was archived by the owner on Nov 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 576
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8bb51c
commit b2e8b13
Showing
19 changed files
with
1,459 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
node_modules | ||
.idea | ||
lib | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
[ | ||
{ | ||
"name": "intercom-session-rqszgt2h", | ||
"value": "S3BZL2Q0UE1NcDc2emsxUCt2cTBBcHl0Q3RTNEFzeEt4eVZCZTkwN0YyOVFNYmlMc0NZNmZOKzFqdkRQdjY5Qi0tU3lzTHljYVRVMWRwTG1qS0d0VlBaZz09--20630c992c745b19b7540a19563ce6464b39de92", | ||
"domain": "localhost", | ||
"path": "/", | ||
"expires": 1497431120000, | ||
"size": 187, | ||
"httpOnly": false, | ||
"secure": false, | ||
"session": false | ||
}, | ||
{ | ||
"name": "graphcool_last_used_project_id", | ||
"value": "cj3kcpmaf00gs0101thxas06m", | ||
"domain": "localhost", | ||
"path": "/", | ||
"expires": 1504602319000, | ||
"size": 55, | ||
"httpOnly": false, | ||
"secure": false, | ||
"session": false | ||
}, | ||
{ | ||
"name": "graphcool_customer_id", | ||
"value": "cj3kcpmai00gt0101zf5np9hj", | ||
"domain": "localhost", | ||
"path": "/", | ||
"expires": 1504602318000, | ||
"size": 46, | ||
"httpOnly": false, | ||
"secure": false, | ||
"session": false | ||
}, | ||
{ | ||
"name": "graphcool_auth_token", | ||
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0OTY4MjYzMTcsImNsaWVudElkIjoiY2oza2NwbWFpMDBndDAxMDF6ZjVucDloaiJ9.jAl-nb8NtZGUiI4dPZWLWjfeu-90RbLq1bPtS4X7RdI", | ||
"domain": "localhost", | ||
"path": "/", | ||
"expires": 1504602318000, | ||
"size": 177, | ||
"httpOnly": false, | ||
"secure": false, | ||
"session": false | ||
}, | ||
{ | ||
"name": "graphcool_last_referral", | ||
"value": "", | ||
"domain": "localhost", | ||
"path": "/", | ||
"expires": 1504602260000, | ||
"size": 23, | ||
"httpOnly": false, | ||
"secure": false, | ||
"session": false | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
export interface Options { | ||
useArtificialClick?: boolean; | ||
closeTab?: boolean; | ||
waitTimeout?: number; | ||
runRemote?: boolean; | ||
} | ||
declare class Chromeless { | ||
private options; | ||
private cdp; | ||
private queue; | ||
private client; | ||
private processCallback; | ||
private lastValue; | ||
private target; | ||
static functionUrl: string; | ||
constructor(options?: Options); | ||
goto(url: string): Chromeless; | ||
click(selector: string, artificialClick?: boolean): Chromeless; | ||
type(text: string, selector?: string): Chromeless; | ||
backspace(n: number, selector?: string): Chromeless; | ||
getCookies(url: string): Chromeless; | ||
setCookies(cookies: any[], url: string): Chromeless; | ||
clearCookies(): Chromeless; | ||
sendKeyCode(keyCode: number, selector?: string, modifiers?: number): Chromeless; | ||
wait(selector: string | number): Chromeless; | ||
evaluate(fn: string | (() => void)): Chromeless; | ||
value(selector: string): Chromeless; | ||
screenshot(outputPath: string): Chromeless; | ||
processJobs(jobs: any[]): Promise<any>; | ||
end(): Promise<any>; | ||
private processRemote(); | ||
private processLocal(); | ||
saveJobs(path: any): Promise<void>; | ||
private serializeJobs(); | ||
private getSerializableJobs(); | ||
private deserializeJobs(jobs); | ||
private prepareFunction(job); | ||
private extractFunctionBody(fn); | ||
} | ||
export default Chromeless; |
Oops, something went wrong.