-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsteps.d.ts
82 lines (77 loc) · 2.89 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
81
82
type ICodeceptCallback = (i: CodeceptJS.I, any) => 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 {
defineTimeout: (timeouts) => any;
amOnPage: (url) => any;
click: (locator, context) => any;
doubleClick: (locator, context) => any;
rightClick: (locator) => any;
fillField: (field, value) => any;
appendField: (field, value) => any;
selectOption: (select, option) => any;
attachFile: (locator, pathToFile) => any;
checkOption: (field, context) => any;
grabTextFrom: (locator) => any;
grabHTMLFrom: (locator) => any;
grabValueFrom: (locator) => any;
grabAttributeFrom: (locator, attr) => any;
seeInTitle: (text) => any;
dontSeeInTitle: (text) => any;
grabTitle: () => any;
see: (text, context) => any;
dontSee: (text, context) => any;
seeInField: (field, value) => any;
dontSeeInField: (field, value) => any;
seeCheckboxIsChecked: (field) => any;
dontSeeCheckboxIsChecked: (field) => any;
seeElement: (locator) => any;
dontSeeElement: (locator) => any;
seeElementInDOM: (locator) => any;
dontSeeElementInDOM: (locator) => any;
seeInSource: (text) => any;
dontSeeInSource: (text) => any;
seeNumberOfElements: (selector, num) => any;
seeInCurrentUrl: (url) => any;
dontSeeInCurrentUrl: (url) => any;
seeCurrentUrlEquals: (url) => any;
dontSeeCurrentUrlEquals: (url) => any;
executeScript: (fn) => any;
executeAsyncScript: (fn) => any;
scrollTo: (locator, offsetX, offsetY) => any;
moveCursorTo: (locator, offsetX, offsetY) => any;
saveScreenshot: (fileName) => any;
setCookie: (cookie) => any;
clearCookie: (cookie) => any;
clearField: (locator) => any;
seeCookie: (name) => any;
dontSeeCookie: (name) => any;
grabCookie: (name) => any;
acceptPopup: () => any;
cancelPopup: () => any;
seeInPopup: (text) => any;
pressKey: (key) => any;
resizeWindow: (width, height) => any;
dragAndDrop: (srcElement, destElement) => any;
wait: (sec) => any;
waitForEnabled: (locator, sec) => any;
waitForElement: (locator, sec) => any;
waitForText: (text, sec, context) => any;
waitForVisible: (locator, sec) => any;
waitToHide: (locator, sec) => any;
waitUntil: (fn, sec) => any;
switchTo: (locator) => any;
construtor: (config) => any;
debug: (msg) => any;
debugSection: (section, msg) => any;
login: (email, password) => any;
}
}
declare module "codeceptjs" {
export = CodeceptJS;
}