-
Notifications
You must be signed in to change notification settings - Fork 1
/
steps.d.ts
111 lines (106 loc) · 4.73 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
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 {
defineTimeout: (defineTimeout(timeouts) => any;
amOnPage: (amOnPage) => any;
click: (click(locator, context=null) => any;
doubleClick: (doubleClick(locator, context=null) => any;
rightClick: (rightClick(locator) => any;
fillField: (fillField(field, value) => any;
appendField: (appendField(field, value) => any;
clearField: (clearField(field) => any;
selectOption: (async) => any;
attachFile: (attachFile(locator, pathToFile) => any;
checkOption: (checkOption(field, context=null) => any;
uncheckOption: (uncheckOption(field, context=null) => any;
grabTextFrom: (async) => any;
grabHTMLFrom: (async) => any;
grabValueFrom: (async) => any;
grabCssPropertyFrom: (async) => any;
grabAttributeFrom: (async) => any;
seeInTitle: (seeInTitle(text) => any;
seeTitleEquals: (seeTitleEquals(text) => any;
dontSeeInTitle: (dontSeeInTitle(text) => any;
grabTitle: (grabTitle() => any;
see: (see(text, context=null) => any;
seeTextEquals: (seeTextEquals(text, context=null) => any;
dontSee: (dontSee(text, context=null) => any;
seeInField: (seeInField(field, value) => any;
dontSeeInField: (dontSeeInField(field, value) => any;
seeCheckboxIsChecked: (seeCheckboxIsChecked(field) => any;
dontSeeCheckboxIsChecked: (dontSeeCheckboxIsChecked(field) => any;
seeElement: (async) => any;
dontSeeElement: (async) => any;
seeElementInDOM: (seeElementInDOM(locator) => any;
dontSeeElementInDOM: (dontSeeElementInDOM(locator) => any;
seeInSource: (seeInSource(text) => any;
grabSource: (grabSource() => any;
grabBrowserLogs: (async) => any;
grabBrowserUrl: (grabBrowserUrl() => any;
dontSeeInSource: (dontSeeInSource(text) => any;
seeNumberOfElements: (seeNumberOfElements(selector, num) => any;
seeNumberOfVisibleElements: (seeNumberOfVisibleElements(locator, num) => any;
seeCssPropertiesOnElements: (async) => any;
seeAttributesOnElements: (async) => any;
grabNumberOfVisibleElements: (async) => any;
seeInCurrentUrl: (seeInCurrentUrl(url) => any;
dontSeeInCurrentUrl: (dontSeeInCurrentUrl(url) => any;
seeCurrentUrlEquals: (seeCurrentUrlEquals(url) => any;
dontSeeCurrentUrlEquals: (dontSeeCurrentUrlEquals(url) => any;
executeScript: (executeScript) => any;
executeAsyncScript: (executeAsyncScript) => any;
scrollTo: (async) => any;
moveCursorTo: (moveCursorTo(locator, offsetX=0, offsetY=0) => any;
saveScreenshot: (async) => any;
setCookie: (setCookie(cookie) => any;
clearCookie: (clearCookie(cookie) => any;
seeCookie: (seeCookie(name) => any;
dontSeeCookie: (dontSeeCookie(name) => any;
grabCookie: (grabCookie(name) => any;
acceptPopup: (acceptPopup() => any;
cancelPopup: (cancelPopup() => any;
seeInPopup: (async) => any;
grabPopupText: (async) => any;
pressKey: (pressKey(key) => any;
resizeWindow: (async) => any;
dragAndDrop: (dragAndDrop(srcElement, destElement) => any;
closeOtherTabs: (async) => any;
wait: (wait(sec) => any;
waitForEnabled: (async) => any;
waitForElement: (async) => any;
waitUntilExists: (waitUntilExists(locator, sec=null) => any;
waitInUrl: (async) => any;
waitUrlEquals: (async) => any;
waitForText: (async) => any;
waitForValue: (async) => any;
waitForVisible: (async) => any;
waitNumberOfVisibleElements: (async) => any;
waitForInvisible: (async) => any;
waitToHide: (waitToHide(locator, sec=null) => any;
waitForStalenessOf: (async) => any;
waitUntil: (waitUntil(fn, sec=null, timeoutMsg=null) => any;
switchTo: (switchTo(locator) => any;
switchToNextTab: (switchToNextTab(num=1, sec=null) => any;
switchToPreviousTab: (switchToPreviousTab(num=1, sec=null) => any;
closeCurrentTab: (closeCurrentTab() => any;
openNewTab: (openNewTab() => any;
refreshPage: (refreshPage() => any;
scrollPageToTop: (scrollPageToTop) => any;
scrollPageToBottom: (scrollPageToBottom) => any;
runOnIOS: (caps, fn) => any;
runOnAndroid: (caps, fn) => any;
runInWeb: (fn) => any;
debug: (msg) => any;
debugSection: (section, msg) => any;
say: (msg) => any;
}
}
declare module "codeceptjs" {
export = CodeceptJS;
}