Skip to content

Commit e67c0c0

Browse files
authored
fix: promise issue (#4013)
1 parent 40a3bfb commit e67c0c0

File tree

96 files changed

+1206
-1206
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+1206
-1206
lines changed

docs/helpers/Appium.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ I.appendField('password', secret('123456'));
889889
- `field` **([string][5] \| [object][11])** located by label|name|CSS|XPath|strict locator
890890
- `value` **[string][5]** text value to append.
891891

892-
Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
892+
Returns **void** automatically synchronized promise through #recorder
893893

894894
### checkOption
895895

@@ -909,7 +909,7 @@ I.checkOption('agree', '//form');
909909
- `field` **([string][5] \| [object][11])** checkbox located by label | name | CSS | XPath | strict locator.
910910
- `context` **([string][5]? | [object][11])** (optional, `null` by default) element located by CSS | XPath | strict locator. (optional, default `null`)
911911

912-
Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
912+
Returns **void** automatically synchronized promise through #recorder
913913

914914
### click
915915

@@ -940,7 +940,7 @@ I.click({css: 'nav a.login'});
940940
- `locator` **([string][5] \| [object][11])** clickable link or button located by text, or any element located by CSS|XPath|strict locator.
941941
- `context` **([string][5]? | [object][11] | null)** (optional, `null` by default) element to search in CSS|XPath|Strict locator. (optional, default `null`)
942942

943-
Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
943+
Returns **void** automatically synchronized promise through #recorder
944944

945945
### dontSeeCheckboxIsChecked
946946

@@ -956,7 +956,7 @@ I.dontSeeCheckboxIsChecked('agree'); // located by name
956956

957957
- `field` **([string][5] \| [object][11])** located by label|name|CSS|XPath|strict locator.
958958

959-
Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
959+
Returns **void** automatically synchronized promise through #recorder
960960

961961
### dontSeeElement
962962

@@ -970,7 +970,7 @@ I.dontSeeElement('.modal'); // modal is not shown
970970

971971
- `locator` **([string][5] \| [object][11])** located by CSS|XPath|Strict locator.
972972

973-
Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
973+
Returns **void** automatically synchronized promise through #recorder
974974

975975
### dontSeeInField
976976

@@ -987,7 +987,7 @@ I.dontSeeInField({ css: 'form input.email' }, '[email protected]'); // field by CSS
987987
- `field` **([string][5] \| [object][11])** located by label|name|CSS|XPath|strict locator.
988988
- `value` **([string][5] \| [object][11])** value to check.
989989

990-
Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
990+
Returns **void** automatically synchronized promise through #recorder
991991

992992
### dontSee
993993

@@ -1004,7 +1004,7 @@ I.dontSee('Login', '.nav'); // no login inside .nav element
10041004
- `text` **[string][5]** which is not present.
10051005
- `context` **([string][5] \| [object][11])?** (optional) element located by CSS|XPath|strict locator in which to perfrom search. (optional, default `null`)
10061006

1007-
Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
1007+
Returns **void** automatically synchronized promise through #recorder
10081008

10091009
### fillField
10101010

@@ -1027,7 +1027,7 @@ I.fillField({css: 'form#login input[name=username]'}, 'John');
10271027
- `field` **([string][5] \| [object][11])** located by label|name|CSS|XPath|strict locator.
10281028
- `value` **([string][5] \| [object][11])** text value to fill.
10291029

1030-
Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
1030+
Returns **void** automatically synchronized promise through #recorder
10311031

10321032
### grabTextFromAll
10331033

@@ -1173,7 +1173,7 @@ I.scrollIntoView('#submit', { behavior: "smooth", block: "center", inline: "cent
11731173
- `locator` **([string][5] \| [object][11])** located by CSS|XPath|strict locator.
11741174
- `scrollIntoViewOptions` **ScrollIntoViewOptions** see [https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView][17].
11751175

1176-
Returns **[Promise][6]<void>** automatically synchronized promise through #recorderSupported only for web testing
1176+
Returns **void** automatically synchronized promise through #recorderSupported only for web testing
11771177

11781178
### seeCheckboxIsChecked
11791179

@@ -1189,7 +1189,7 @@ I.seeCheckboxIsChecked({css: '#signup_form input[type=checkbox]'});
11891189

11901190
- `field` **([string][5] \| [object][11])** located by label|name|CSS|XPath|strict locator.
11911191

1192-
Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
1192+
Returns **void** automatically synchronized promise through #recorder
11931193

11941194
### seeElement
11951195

@@ -1204,7 +1204,7 @@ I.seeElement('#modal');
12041204

12051205
- `locator` **([string][5] \| [object][11])** located by CSS|XPath|strict locator.
12061206

1207-
Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
1207+
Returns **void** automatically synchronized promise through #recorder
12081208

12091209
### seeInField
12101210

@@ -1223,7 +1223,7 @@ I.seeInField('#searchform input','Search');
12231223
- `field` **([string][5] \| [object][11])** located by label|name|CSS|XPath|strict locator.
12241224
- `value` **([string][5] \| [object][11])** value to check.
12251225

1226-
Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
1226+
Returns **void** automatically synchronized promise through #recorder
12271227

12281228
### see
12291229

@@ -1241,7 +1241,7 @@ I.see('Register', {css: 'form.register'}); // use strict locator
12411241
- `text` **[string][5]** expected on page.
12421242
- `context` **([string][5]? | [object][11])** (optional, `null` by default) element located by CSS|Xpath|strict locator in which to search for text. (optional, default `null`)
12431243

1244-
Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
1244+
Returns **void** automatically synchronized promise through #recorder
12451245

12461246
### selectOption
12471247

@@ -1269,7 +1269,7 @@ I.selectOption('Which OS do you use?', ['Android', 'iOS']);
12691269
- `select` **([string][5] \| [object][11])** field located by label|name|CSS|XPath|strict locator.
12701270
- `option` **([string][5] \| [Array][8]<any>)** visible text or value of option.
12711271

1272-
Returns **[Promise][6]<void>** automatically synchronized promise through #recorderSupported only for web testing
1272+
Returns **void** automatically synchronized promise through #recorderSupported only for web testing
12731273

12741274
### waitForElement
12751275

@@ -1286,7 +1286,7 @@ I.waitForElement('.btn.continue', 5); // wait for 5 secs
12861286
- `locator` **([string][5] \| [object][11])** element located by CSS|XPath|strict locator.
12871287
- `sec` **[number][10]?** (optional, `1` by default) time in seconds to wait (optional, default `null`)
12881288

1289-
Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
1289+
Returns **void** automatically synchronized promise through #recorder
12901290

12911291
### waitForVisible
12921292

@@ -1302,7 +1302,7 @@ I.waitForVisible('#popup');
13021302
- `locator` **([string][5] \| [object][11])** element located by CSS|XPath|strict locator.
13031303
- `sec` **[number][10]** (optional, `1` by default) time in seconds to wait (optional, default `1`)
13041304

1305-
Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
1305+
Returns **void** automatically synchronized promise through #recorder
13061306

13071307
### waitForInvisible
13081308

@@ -1318,7 +1318,7 @@ I.waitForInvisible('#popup');
13181318
- `locator` **([string][5] \| [object][11])** element located by CSS|XPath|strict locator.
13191319
- `sec` **[number][10]** (optional, `1` by default) time in seconds to wait (optional, default `1`)
13201320

1321-
Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
1321+
Returns **void** automatically synchronized promise through #recorder
13221322

13231323
### waitForText
13241324

@@ -1337,7 +1337,7 @@ I.waitForText('Thank you, form has been submitted', 5, '#modal');
13371337
- `sec` **[number][10]** (optional, `1` by default) time in seconds to wait (optional, default `1`)
13381338
- `context` **([string][5] \| [object][11])?** (optional) element located by CSS|XPath|strict locator. (optional, default `null`)
13391339

1340-
Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
1340+
Returns **void** automatically synchronized promise through #recorder
13411341

13421342
[1]: http://codecept.io/helpers/WebDriver/
13431343

0 commit comments

Comments
 (0)