This repository was archived by the owner on May 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsteps.d.ts
80 lines (75 loc) · 2.94 KB
/
steps.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
type ICodeceptCallback = (i: CodeceptJS.I) => void;
declare const actor: () => CodeceptJS.I;
declare const Feature: (string: string) => void;
declare const Scenario: (string: string, callback: ICodeceptCallback) => void;
declare const Before: (callback: ICodeceptCallback) => void;
declare const After: (callback: ICodeceptCallback) => void;
declare const within: (selector: string, callback: Function) => void;
declare namespace CodeceptJS {
export interface I {
amOutsideAngularApp: () => any;
amInsideAngularApp: () => any;
waitForElement: (locator, sec=null) => any;
waitUntilExists: (locator, sec=null) => any;
waitForClickable: (locator, sec=null) => any;
waitForVisible: (locator, sec=null) => any;
waitForInvisible: (locator, sec=null) => any;
waitForStalenessOf: (locator, sec=null) => any;
waitForText: (text, sec=null, context=null) => any;
moveTo: (path) => any;
refresh: () => any;
haveModule: (modName, fn) => any;
resetModule: (modName) => any;
setCookie: (cookie) => any;
amOnPage: (url) => any;
click: (click) => any;
doubleClick: (doubleClick) => any;
moveCursorTo: (moveCursorTo) => any;
see: (text, context=null) => any;
dontSee: (text, context=null) => any;
selectOption: (selectOption) => any;
fillField: (field, value) => any;
pressKey: (key) => any;
attachFile: (attachFile) => any;
seeInField: (field, value) => any;
dontSeeInField: (field, value) => any;
appendField: (field, value) => any;
clearField: (field, value) => any;
checkOption: (checkOption) => any;
seeCheckboxIsChecked: (field) => any;
dontSeeCheckboxIsChecked: (field) => any;
grabTextFrom: (locator) => any;
grabValueFrom: (locator) => any;
grabAttributeFrom: (locator, attr) => any;
seeInTitle: (seeInTitle) => any;
dontSeeInTitle: (dontSeeInTitle) => any;
grabTitle: (grabTitle) => any;
seeElement: (seeElement) => any;
dontSeeElement: (dontSeeElement) => any;
seeElementInDOM: (seeElementInDOM) => any;
dontSeeElementInDOM: (dontSeeElementInDOM) => any;
seeInSource: (seeInSource) => any;
dontSeeInSource: (dontSeeInSource) => any;
executeScript: (fn) => any;
executeAsyncScript: (fn) => any;
seeInCurrentUrl: (url) => any;
dontSeeInCurrentUrl: (url) => any;
seeCurrentUrlEquals: (seeCurrentUrlEquals) => any;
dontSeeCurrentUrlEquals: (dontSeeCurrentUrlEquals) => any;
saveScreenshot: (saveScreenshot) => any;
clearCookie: (cookie=null) => any;
seeCookie: (name) => any;
dontSeeCookie: (name) => any;
grabCookie: (name) => any;
resizeWindow: (width, height) => any;
closeOtherTabs: (closeOtherTabs) => any;
wait: (sec) => any;
debug: (msg) => any;
debugSection: (section, msg) => any;
addMochawesomeContext: (context) => any;
say: (msg) => any;
}
}
declare module "codeceptjs" {
export = CodeceptJS;
}