Skip to content

Commit 8db6ac4

Browse files
DavertMikclaude
andcommitted
docs: clarify context parameter is optional in all form method docs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 933e69c commit 8db6ac4

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

docs/webapi/appendField.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Appends text to a input field or textarea.
22
Field is located by name, label, CSS or XPath
33

4-
The third parameter is a context (CSS or XPath locator) to narrow the search.
4+
The third parameter is an optional context (CSS or XPath locator) to narrow the search.
55

66
```js
77
I.appendField('#myTextField', 'appended');

docs/webapi/attachFile.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Attaches a file to element located by label, name, CSS or XPath
22
Path to file is relative current codecept directory (where codecept.conf.ts or codecept.conf.js is located).
33
File will be uploaded to remote system (if tests are running remotely).
44

5-
The third parameter is a context (CSS or XPath locator) to narrow the search.
5+
The third parameter is an optional context (CSS or XPath locator) to narrow the search.
66

77
```js
88
I.attachFile('Avatar', 'data/avatar.jpg');

docs/webapi/checkOption.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Selects a checkbox or radio button.
22
Element is located by label or name or CSS or XPath.
33

4-
The second parameter is a context (CSS or XPath locator) to narrow the search.
4+
The second parameter is an optional context (CSS or XPath locator) to narrow the search.
55

66
```js
77
I.checkOption('#agree');

docs/webapi/clearField.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Clears a `<textarea>` or text `<input>` element's value.
22

3-
The second parameter is a context (CSS or XPath locator) to narrow the search.
3+
The second parameter is an optional context (CSS or XPath locator) to narrow the search.
44

55
```js
66
I.clearField('Email');

docs/webapi/fillField.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Fills a text field or textarea, after clearing its value, with the given string.
22
Field is located by name, label, CSS, or XPath.
33

4-
The third parameter is a context (CSS or XPath locator) to narrow the search.
4+
The third parameter is an optional context (CSS or XPath locator) to narrow the search.
55

66
```js
77
// by label

docs/webapi/selectOption.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Selects an option in a drop-down select.
22
Field is searched by label | name | CSS | XPath.
33
Option is selected by visible text or by value.
44

5-
The third parameter is a context (CSS or XPath locator) to narrow the search.
5+
The third parameter is an optional context (CSS or XPath locator) to narrow the search.
66

77
```js
88
I.selectOption('Choose Plan', 'Monthly'); // select by label

docs/webapi/uncheckOption.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Unselects a checkbox or radio button.
22
Element is located by label or name or CSS or XPath.
33

4-
The second parameter is a context (CSS or XPath locator) to narrow the search.
4+
The second parameter is an optional context (CSS or XPath locator) to narrow the search.
55

66
```js
77
I.uncheckOption('#agree');

0 commit comments

Comments
 (0)