diff --git a/index.html b/index.html index fe21aa99..c1dacd4f 100644 --- a/index.html +++ b/index.html @@ -1,6 +1,6 @@
- + - +WebIDL
-Navigator includes NavigatorAutomationInformation
;
+Navigator includes NavigatorAutomationInformation
;
The NavigatorAutomationInformation
interface
-should not be exposed on WorkerNavigator
.
+should not be exposed on WorkerNavigator
.
While the connection is not closed:
+While the connection is not closed:
Read bytes from the connection until a @@ -777,14 +777,14 @@
If request match is of type error, send an error with request match's error code - and continue. + and continue.
Otherwise, let command and URL variables be request match's data.
Let session be null. -
If URL variables contains "session id"
:
+
If URL variables contains "session id"
:
This condition is intended to exclude the New Session and Status commands and any extension commands which do not operate on a particular session. @@ -801,7 +801,7 @@
If the session is null
send an error with error code invalid session id,
- then continue.
+ then continue.
Let command be entry's command. -
Let URL variables be a map with one - entry for each variable defined in URI template, +
Let URL variables be a map with one + entry for each variable defined in URI template, with the entry name equal to the template variable name, and the entry value being the variable value required to expand the URI template to match URL's path. @@ -1457,7 +1457,7 @@
element click intercepted
stale element reference
browserName
"
- browserVersion
"
platformName
"
- acceptInsecureCerts
"
A session has an associated browsing context input -state map, which is a weak map with top-level browsing +state map, which is a weak map with top-level browsing contexts as keys, and input state objects as values. This is initially set to an empty map.
An HTTP session has an associated request queue which is a -queue of requests that are currently awaiting +queue of requests that are currently awaiting processing. -
When a session is created, a set of session configuration +
When a session is created, a set of session configuration
flags are provided that define the features of the session. This
specification always creates sessions with "http
"
in session configuration flags, which corresponds to
@@ -2724,7 +2724,7 @@
Unset the accept insecure TLS flag.
Reset the has proxy configuration flag to its default value. -
Optionally, close all top-level browsing contexts, +
Optionally, close all top-level browsing contexts, without prompting to unload.
Set session' current top-level browsing - context to one of the endpoint node's top-level - browsing contexts, preferring the top-level browsing + context to one of the endpoint node's top-level + browsing contexts, preferring the top-level browsing context that has system - focus, or otherwise preferring any top-level browsing + focus, or otherwise preferring any top-level browsing context whose visibility state @@ -2890,7 +2890,7 @@
Set the request queue to a new queue. +
Set the request queue to a new queue.
Return success with data body.
A timer is a struct. It has +
A timer is a struct. It has a timeout fired flag, which is a boolean, initially false. @@ -2991,7 +2991,7 @@
Assert: timeout is not null. -
Run the following steps in parallel: +
Run the following steps in parallel:
A timeouts configuration is a struct representing +
A timeouts configuration is a struct representing the timeouts for script evaluation, navigation, and element retrieval. It has a script -timeout item which is an integer or null and is +timeout item which is an integer or null and is initially set to 30,000, a page load -timeout item which is an integer or null and is +timeout item which is an integer or null and is initially set to 300,000, and an implicit -wait timeout item which is an integer or null and is +wait timeout item which is an integer or null and is initially set to 0. @@ -3028,7 +3028,7 @@
If «"script
", "pageLoad
",
- "implicit
"» does not contain key,
+ "implicit
"» does not contain key,
then continue.
If value is neither null nor a number greater than @@ -3058,7 +3058,7 @@
Let serialized be an empty map. +
Let serialized be an empty map.
Set serialized["script
"]
to timeouts' script timeout.
@@ -3232,9 +3232,9 @@
load
event fires on the new page,
+ to return after the load
event fires on the new page,
eager causes it to return
- after the DOMContentLoaded
event fires,
+ after the DOMContentLoaded
event fires,
and none causes it to return immediately.
Navigation actions are also affected by the value of @@ -3320,7 +3320,7 @@
Run these steps, but abort when timer's +
Run these steps, but abort when timer's timeout fired flag is set:
If aborted return an error with error +
If aborted return an error with error code timeout.
Return success with data null
.
@@ -3445,7 +3445,7 @@
Run these steps, but abort when timer's +
Run these steps, but abort when timer's timeout fired flag is set:
If aborted return an error with error +
If aborted return an error with error code timeout.
Return success with data null
.
@@ -3584,8 +3584,8 @@
If the previous step completed results in
- a pageHide
event firing, wait
- until pageShow
event fires
+ a pageHide
event firing, wait
+ until pageShow
event fires
or timer' timeout fired flag to be set,
whichever occurs first.
@@ -3647,7 +3647,7 @@
If the previous step completed results in a pageHide
- event firing, wait until pageShow
event fires or timer' timeout fired flag to be set, whichever occurs first.
+ event firing, wait until pageShow
event fires or timer' timeout fired flag to be set, whichever occurs first.
If timer' timeout fired flag is set: @@ -3741,7 +3741,7 @@
Let title be
the session's current top-level browsing
- context's active document's title
.
+ context's active document's title
.
Return success with data title.
The use of the term “window” to
- refer to a top-level browsing context
+ refer to a top-level browsing context
is legacy and doesn't correspond with either
the operating system notion of a “window”
or the DOM Window
object.
A browsing context is said to be no longer open - if its navigable has been destroyed. + if its navigable has been destroyed.
Each browsing context has an associated window handle which uniquely @@ -3776,7 +3776,7 @@
current
".
A web frame - is an abstraction used to identify a frame or iframe + is an abstraction used to identify a frame or iframe when it is transported via the protocol, between remote and local ends. @@ -3804,7 +3804,7 @@
Let identifier be the web window identifier if the associated browsing context of window - is a top-level browsing context. + is a top-level browsing context.
Otherwise let it be the web frame identifier. @@ -3833,7 +3833,7 @@
If browsing context is null or a top-level browsing context, +
If browsing context is null or a top-level browsing context, return error with error code no such frame.
Return success with data browsing context's associated window. @@ -3857,7 +3857,7 @@
If browsing context is null or not a top-level browsing context, +
If browsing context is null or not a top-level browsing context, return error with error code no such window.
Return success with data browsing context's associated window. @@ -3882,7 +3882,7 @@
Assert: context is a top-level browsing context. +
Assert: context is a top-level browsing context.
Set session's current top-level browsing context to context. @@ -3995,7 +3995,7 @@
Close session's current top-level browsing context. -
If there are no more open top-level browsing contexts, +
If there are no more open top-level browsing contexts, then try to close the session.
If there is an active user prompt, that prevents the - focusing of another top-level browsing context, + focusing of another top-level browsing context, return error with error code unexpected alert open.
If handle is equal to the associated window - handle for some top-level browsing context, + handle for some top-level browsing context, let context be the that browsing context, and set the current top-level browsing context with session and context. @@ -4121,7 +4121,7 @@
Let handles be a List. -
For each top-level browsing context in the remote end, +
For each top-level browsing context in the remote end, push the associated window handle onto handles.
Create a new top-level browsing context. +
Create a new top-level browsing context.
The remote end steps, given session, URL variables and parameters are: @@ -4214,7 +4214,7 @@
Let type hint be the result of getting the property
"type
" from parameters.
-
Create a new top-level browsing context by running +
Create a new top-level browsing context by running
the window open steps with URL set to
"about:blank
", target set to the empty
string, and features set to "noopener
" and
@@ -4348,12 +4348,12 @@
If element is not a frame
+ or iframe
element,
return error with error code no such frame.
Set the current browsing context - with session and element's content navigable's active browsing context. + with session and element's content navigable's active browsing context.
If session's current browsing context is already the - top-level browsing context: + top-level browsing context:
The top-level browsing context +
The top-level browsing context has an associated window state which describes what visibility state its OS widget window is in. It can be in one of the following states: @@ -4479,7 +4479,7 @@
If for whatever reason the top-level browsing context's +
If for whatever reason the top-level browsing context's OS window cannot enter either of the window states, or if this concept is not applicable on the current system, the default state must be normal. @@ -4504,7 +4504,7 @@
To maximize the window, given an operating system level window - with an associated top-level browsing context, + with an associated top-level browsing context, run the implementation-specific steps to transition the operating system level window into the maximized window state. @@ -4519,25 +4519,25 @@
To iconify the window, given an operating system level window - with an associated top-level browsing context, + with an associated top-level browsing context, run implementation-specific steps to transition the operating system level window into the minimized window state. Do not return from this operation until the visibility state - of the top-level browsing context's active document + of the top-level browsing context's active document has reached the state, or until the operation times out.
To restore the window, given an operating system level window - with an associated top-level browsing context, + with an associated top-level browsing context, run implementation-specific steps to restore or unhide the window to the visible screen. Do not return from this operation until the visibility state - of the top-level browsing context's active document + of the top-level browsing context's active document has reached the visible state, or until the operation times out. @@ -4941,7 +4941,7 @@
Call fullscreen an element with session's current top-level browsing context's - active document's document element. + active document's document element.
The window is now in the Fullscreen window state. @@ -4958,7 +4958,7 @@
A web element - is an abstraction used to identify an element + is an abstraction used to identify an element when it is transported via the protocol, between remote and local ends. @@ -4972,7 +4972,7 @@
A weak map is a map in which keys are held +
A weak map is a map in which keys are held weakly i.e. items are removed if the key object is garbaged collected, and presence in the map does not prevent garbage collection. This acts as an alternative to defining properties directly on the key objects. @@ -4989,7 +4989,7 @@
A WebDriver session has a navigable seen nodes map -which is a weak map between a navigable and a set. +which is a weak map between a navigable and a set.
To get a node given session, browsing context, and reference: @@ -5037,7 +5037,7 @@
Element
return error with error code no such element.
+ Element
return error with error code no such element.
@@ -5091,10 +5091,10 @@ To get or create a web element reference - given session and element: + given session and element:
Element
.
+ Element
.
Return success with data element.
An element is stale - if its node document is not the active document - or if it is not connected. +
An element is stale + if its node document is not the active document + or if it is not connected.
To scroll into view - an element + an element perform the following steps only if the element is not already in view: @@ -5159,7 +5159,7 @@
Editable elements +
Editable elements are those that can be used for typing and clearing, and they fall into two subcategories: @@ -5168,7 +5168,7 @@
Denotes input
elements
that are mutable (e.g. that are not read only or
- disabled) and whose type
attribute
+ disabled) and whose type
attribute
is in one of the following states:
And the textarea
element.
+
And the textarea
element.
Denotes elements that are editing hosts or content editable.
An element is said to have +
An element is said to have
pointer events disabled
if the resolved value of its "pointer-events
" style property
is "none
".
-
An element is to be considered read only +
An element is to be considered read only
if it is an input
element
- whose readonly
attribute is set.
+ whose readonly
attribute is set.
In order to determine if an element +
In order to determine if an element can be interacted with using pointer actions, WebDriver performs hit-testing to find if the interaction will be able to reach the requested element.
An interactable element - is an element which is either + is an element which is either pointer-interactable or keyboard-interactable.
A pointer-interactable element - is defined to be the first element, + is defined to be the first element, defined by the paint order found at the center point of its rectangle that is inside the viewport, excluding the size of any rendered scrollbars.
A keyboard-interactable element
- is any element that has a focusable area,
+ is any element that has a focusable area,
is a body
element,
- or is the document element.
+ or is the document element.
-
An element's in-view center point +
An element's in-view center point
is the origin position of the rectangle
that is the intersection between
- the element's first DOMRect
of getClientRects
()
+ the element's first DOMRect
of getClientRects
()
and the initial viewport.
- Given an element that is known to be in view,
+ Given an element that is known to be in view,
it can be calculated this way:
Let rectangle be
- the first element of the DOMRect
sequence
- returned by calling getClientRects
()
on element.
+ the first element of the DOMRect
sequence
+ returned by calling getClientRects
()
on element.
Let left be max(0, min(x coordinate, @@ -5265,15 +5265,15 @@
Return the pair of (x, y).
An element element is disabled if the following steps +
An element element is disabled if the following steps return true:
If element is an option element or element is an optgroup element: +
If element is an option element or element is an optgroup element:
For each inclusive ancestor ancestor of element: +
For each inclusive ancestor ancestor of element:
If ancestor is an optgroup element or ancestor is a select +
If ancestor is an optgroup element or ancestor is a select element, and ancestor is actually disabled, return true.
Return false. @@ -5281,26 +5281,26 @@
Return element is actually disabled.
An element is in view +
An element is in view if it is a member of its own pointer-interactable paint tree, given the pretense that its pointer events are not disabled. -
An element is obscured +
An element is obscured if the pointer-interactable paint tree at its center point is empty, or the first element in this tree - is not an inclusive descendant of itself. + is not an inclusive descendant of itself.
On the other hand, the center point of the following select
- list is the third option
element, because unlike
+ list is the third option
element, because unlike
a drop-down list,
<select multiple>
's options
are individually visible and painted.
- Because the option is a descendant
- of the select
element,
+ Because the option is a descendant
+ of the select
element,
it is not obscured:
@@ -5333,7 +5333,7 @@
An element's +
An element's pointer-interactable paint tree is produced this way: @@ -5343,8 +5343,8 @@
Let rectangles be
- the DOMRect
sequence
- returned by calling getClientRects
()
.
+ the DOMRect
sequence
+ returned by calling getClientRects
()
.
If rectangles has the length of 0, @@ -5385,7 +5385,7 @@
ShadowRoot
return error with error code
+ ShadowRoot
return error with error code
no such shadow root.
@@ -5400,7 +5400,7 @@ ShadowRoot
.
+ ShadowRoot
.
A shadow root is detached - if its node document is not the active document + if its node document is not the active document or if the element node referred to as its host is stale.
@@ -5512,7 +5512,7 @@An element location strategy is an enumerated attribute deciding what technique should be used - to search for elements in session's current + to search for elements in session's current browsing context. The following table of location strategies lists the keywords and states defined for this attribute: @@ -5558,7 +5558,7 @@
Let elements be the result of calling
- querySelectorAll
()
with start node as this
+ querySelectorAll
()
with start node as this
and selector as the argument. If this causes an exception
to be thrown, return error with error code
invalid selector.
@@ -5576,11 +5576,11 @@
Let elements be the result of calling
- querySelectorAll
()
with start node as this
+ querySelectorAll
()
with start node as this
and "a
" as the argument. If this throws an exception,
return error with error code unknown error.
-
Let result be an empty NodeList
.
+
Let result be an empty NodeList
.
For each element in elements: @@ -5608,7 +5608,7 @@
a
elements
+ That is, return all a
elements
with rendered text that contains the selector expression.
To find a web element @@ -5617,11 +5617,11 @@
Let elements be the result of calling
- querySelectorAll
()
with start node as this
+ querySelectorAll
()
with start node as this
and "a
" as the argument. If this throws an exception,
return error with error code unknown error.
-
Let result be an empty NodeList
.
+
Let result be an empty NodeList
.
For each element in elements: @@ -5643,7 +5643,7 @@
To find a web element with the Tag Name
strategy return success with data set to the result of
- calling getElementsByTagName
()
with
+ calling getElementsByTagName
()
with
start node as this and selector as the
argument.
@@ -5677,7 +5677,7 @@
Let result be an empty NodeList
.
+
Let result be an empty NodeList
.
Repeat, while index is less than length: @@ -5686,7 +5686,7 @@
If node is not an element return an error with error code invalid selector.