Skip to content

Commit 77463df

Browse files
authored
Normalize types of values returned by locators (#626)
Consistently return a WebDriver "error" type or a WebDriver "success" type to support invocation of these algorithms using WebDriver's "try".
1 parent 46d0bc1 commit 77463df

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.bs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2965,9 +2965,9 @@ To <dfn>locate nodes using CSS</dfn> with given |context target|, |context nodes
29652965

29662966
1. If |maximum returned node count| is not null and [=list/size=] of
29672967
|returned nodes| is equal to |maximum returned node count|,
2968-
return |returned nodes|.
2968+
return [=success=] with data |returned nodes|.
29692969

2970-
1. Return |returned nodes|.
2970+
1. Return [=success=] with data |returned nodes|.
29712971

29722972
</div>
29732973

@@ -3006,11 +3006,11 @@ without going via the ECMAScript runtime.
30063006

30073007
1. If |maximum returned node count| not null and [=list/size=] of
30083008
|returned nodes| is equal to |maximum returned node count|,
3009-
return |returned nodes|.
3009+
return [=success=] with data |returned nodes|.
30103010

30113011
1. Set |index| to |index| + 1.
30123012

3013-
1. Return |returned nodes|.
3013+
1. Return [=success=] with data |returned nodes|.
30143014

30153015
</div>
30163016

@@ -3072,7 +3072,7 @@ and |session|:
30723072
in |returned nodes| with an index greater than or equal to |maximum returned
30733073
node count|.
30743074

3075-
1. Return |returned nodes|.
3075+
1. Return [=success=] with data |returned nodes|.
30763076

30773077
</div>
30783078

0 commit comments

Comments
 (0)