diff --git a/index.html b/index.html index 502eb9ef..0424d0a3 100644 --- a/index.html +++ b/index.html @@ -1039,6 +1039,18 @@
This chapter describes testing methods for the browser's autofill +functionality to enable web developers to automatically test their HTML +content for expected autofill behavior, against multiple browser +implementations.
+ +These methods would allow saving of test autofill data and then +triggering the autofill functionality on particular form field.
+ +Autofill configuration is a record containing a "fields" property, +an ordered map whose [=map/keys=] are autofill field names +and values are the field values. + +A browsing context has a autofill store for testing, an +ordered map. + +HTTP Method + | URI Template + |
---|---|
POST + | /session/{session id}/autofill/save + |
The remote end steps are: + +
If the current top-level browsing context is no longer open, + return error with error code no such window. +
Let store be the current top-level browsing context's + autofill store for testing. +
Let configuration be the result of trying to + JSON deserialize the request’s body as an autofill configuration. +
Let fields be the "fields" property of configuration. +
[=map/For each=] key=>value of fields, set + store[key] to value. + + +
HTTP Method + | URI Template + |
---|---|
POST + | /session/{session id}/autofill/{element id}/trigger + |
The remote end steps are: + +
If the current top-level browsing context is no longer open, + return error with error code no such window. + +
Let element be the result of trying to + get a known element given session id and element id. + +
If element is not a form + associated or the element's form + owner is null, return an error with error code invalid + element state. + +
The user agent should autofill + element and element's form owner, + while taking into account the contents of the current top-level browsing context's + autofill store for testing. + +