# US 2025/0148197 A1 · Autofill techniques for secondary web-based forms

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0148197 A1
- Document ID: US20250148197A1
- Status: Published application
- Kind: A1
- Application number: 18/501,933
- Filed: 2023-11-03
- Published: 2025-05-08
- Earliest claimed: 2023-11-03
- Assignees: Stripe, Inc.
- Applicants: Stripe, Inc.
- Inventors: David WEEDON; John WAHBA
- Web page: https://patentgrep.com/patent/US20250148197A1

## CPC

- G06F 40/174: Form filling; Merging
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Aspects of the subject technology include receiving an indication that a user has accessed a webpage comprising a form. Responsive to determining that the user is registered with a remote server, aspects also include accessing an account information of the user including an attribute, identifying a field of the form, the field including a first form information matching the attribute, generating a new selector that uniquely identifies the field in a document object model associated with the form, and transmitting, to a remote server, an indication of the new selector. Responsive to determining that the user is not registered with the remote server, aspects also include receiving a selector selected from a plurality of selectors associated with the webpage, accessing a second form information from a field of the form associated with the received selector, and autofilling a field of another form with the second form information.

## Claims

### Claim 1

A method comprising:
receiving an indication that a user has accessed a webpage comprising a form;
responsive to determining that the user is registered with a remote server:
accessing an account information associated with the user, the account information including an attribute;
identifying a field of the form of the webpage, the field including a first form information matching the attribute;
generating a new selector that uniquely identifies the field in a document object model (DOM) associated with the form; and
transmitting, to a remote server, an indication of the new selector for subsequently identifying the field of the form; and
responsive to determining that the user is not registered with the remote server:
receiving, from the remote server, a selector selected from a plurality of selectors associated with the webpage, wherein each respective selector of the plurality of selectors is associated with a respective success rate indicating how frequently the respective selector correctly identified the field in the DOM, and the received selector is associated with a highest success rate relative to the plurality of selectors;
accessing a second form information from a field of the form associated with the received selector; and
autofilling a field of another form with the second form information.

### Claim 2 (depends on 1)

The method of claim 1, wherein the transmitting is performed in response to a submission of the form.

### Claim 3 (depends on 1)

The method of claim 1, wherein generating the new selector comprises at least one of the following:
generating a path from a root of the DOM to the field;
generating a path from a unique parent element to the field;
generating a path from a unique sibling element to the field;
generating a class list associated with the field; or
generating an attribute list associated with the field.

### Claim 4 (depends on 1)

The method of claim 1, further comprising, before autofilling the field of the other form:
receiving, from the remote server, another selector from the plurality of selectors associated with the webpage; and
accessing a third form information from a field of the form associated with the other received selector.

### Claim 5 (depends on 4)

The method of claim 4, wherein, autofilling the field of the other form with the second form information comprises:
comparing the second form information with the third form information;
in response to the second form information being the same as the third form information, autofilling the field of the other form with the second form information; and
in response to the second form information not being the same as the third form information:
receiving a fourth form information input into the field of the other form; and
in response to the second form information being the same as the fourth form information, transmitting, to the remote server, an indication that increases a success rate of the received selector; and
in response to the third form information being the same as the fourth form information, transmitting, to the remote server, an indication that increases a success rate associated with the other received selector.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
in response to the autofilling, determining whether the field of the other form includes the second form information;
in response to determining that the field of the other form includes the second form information, transmitting, to the remote server, an indication that increases a success rate associated with the selector; and
in response to determining that the field of the other form does not include the second form information, transmitting, to the remote server, an indication that decreases the success rate associated with the selector.

### Claim 7 (depends on 1)

The method of claim 1, wherein accessing the account information associated with the user comprises extracting the account information from a browser cookie.

### Claim 8

An electronic device comprising:
a memory; and
a processor configured to:
receive an indication that a user has accessed a webpage comprising a form;
responsive to determining that the user is registered with a remote server:
access an account information associated with the user, the account information including an attribute;
identify a field of the form of the webpage, the field including a first form information matching the attribute;
generate a new selector that uniquely identifies the field in a document object model (DOM) associated with the form; and
transmit, to a remote server, an indication of the new selector for subsequently identifying the field of the form; and
responsive to determining that the user is not registered with the remote server:
receive, from the remote server, a selector selected from a plurality of selectors associated with the webpage, wherein each respective selector of the plurality of selectors is associated with a respective success rate indicating how frequently the respective selector correctly identified the field in the DOM, and the received selector is associated with a highest success rate relative to the plurality of selectors;
access a second form information from a field of the form associated with the received selector; and
autofill a field of another form with the second form information.

### Claim 9 (depends on 8)

The electronic device of claim 8, wherein the transmitting is performed in response to a submission of the form.

### Claim 10 (depends on 8)

The electronic device of claim 8, wherein generating the new selector comprises at least one of the following:
generating a path from a root of the DOM to the field in the DOM;
generating a path from the root of the DOM to a nearest ancestor with a single input relative to the field in the DOM;
generating a path to a nearest ID attribute named according to the field;
generating a class list associated with the nearest ancestor relative to the field, the nearest ancestor having a unique class list; or
generating an attribute list associated with the field, the field having a unique attribute list.

### Claim 11 (depends on 8)

The electronic device of claim 8, wherein the processor is also configured to, before autofilling the field of the other form:
receive, from the remote server, another selector from the plurality of selectors associated with the webpage; and
access a third form information from a field of the form associated with the other received selector.

### Claim 12 (depends on 11)

The electronic device of claim 11, wherein, autofilling the field of the other form with the second form information comprises:
comparing the second form information with the third form information;
in response to the second form information being the same as the third form information, autofilling the field of the other form with the second form information; and
in response to the second form information not being the same as the third form information:
receiving a fourth form information input into the field of the other form; and
in response to the second form information being the same as the fourth form information, transmitting, to the remote server, an indication that increases a success rate of the received selector; and
in response to the third form information being the same as the fourth form information, transmitting, to the remote server, an indication that increases a success rate associated with the other received selector.

### Claim 13 (depends on 8)

The electronic device of claim 8, wherein the processor is also configured to:
in response to the autofilling, determine whether the field of the other form includes the second form information;
in response to determining that the field of the other form includes the second form information, transmit, to the remote server, an indication that increases a success rate associated with the selector; and
in response to determining that the field of the other form does not include the second form information, transmit, to the remote server, an indication that decreases the success rate associated with the selector.

### Claim 14 (depends on 8)

The electronic device of claim 8, wherein accessing the account information associated with the user comprises extracting the account information from a browser cookie.

### Claim 15

A non-transitory computer-readable medium comprising:
computer-readable instructions that, when executed by a processor, cause the processor to perform one or more operations comprising:
receiving an indication that a user has accessed a webpage comprising a form;
responsive to determining that the user is registered with a remote server:
accessing an account information associated with the user, the account information including an attribute;
identifying a field of the form of the webpage, the field including a first form information matching the attribute;
generating a new selector that uniquely identifies the field in a document object model (DOM) associated with the form; and
transmitting, to a remote server, an indication of the new selector for subsequently identifying the field of the form; and
responsive to determining that the user is not registered with the remote server:
receiving, from the remote server, a selector selected from a plurality of selectors associated with the webpage, wherein each respective selector of the plurality of selectors is associated with a respective success rate indicating how frequently the respective selector correctly identified the field in the DOM, and the received selector is associated with a highest success rate relative to the plurality of selectors;
accessing a second form information from a field of the form associated with the received selector; and
autofilling a field of another form with the second form information.

### Claim 16 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the transmitting is performed in response to a submission of the form.

### Claim 17 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein generating the new selector comprises at least one of the following:
generating a path from a root of the DOM to the field in the DOM;
generating a path from the root of the DOM to a nearest ancestor with a single input relative to the field in the DOM;
generating a path to a nearest ID attribute named according to the field;
generating a class list associated with the nearest ancestor relative to the field, the nearest ancestor having a unique class list; or
generating an attribute list associated with the field, the field having a unique attribute list.

### Claim 18 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the computer-readable instructions cause the processor to perform one or more operations also comprising, before autofilling the field of the other form:
receiving, from the remote server, another selector from the plurality of selectors associated with the webpage; and
accessing a third form information from a field of the form associated with the other received selector.

### Claim 19 (depends on 18)

The non-transitory computer-readable medium of claim 18, wherein, autofilling the field of the other form with the second form information comprises:
comparing the second form information with the third form information;
in response to the second form information being the same as the third form information, autofilling the field of the other form with the second form information; and
in response to the second form information not being the same as the third form information:
receiving a fourth form information input into the field of the other form; and
in response to the second form information being the same as the fourth form information, transmitting, to the remote server, an indication that increases a success rate of the received selector; and
in response to the third form information being the same as the fourth form information, transmitting, to the remote server, an indication that increases a success rate associated with the other received selector.

### Claim 20 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the computer-readable instructions cause the processor to perform one or more operations also comprising:
in response to the autofilling, determining whether the field of the other form includes the second form information;
in response to determining that the field of the other form includes the second form information, transmitting, to the remote server, an indication that increases a success rate associated with the selector; and
in response to determining that the field of the other form does not include the second form information, transmitting, to the remote server, an indication that decreases the success rate associated with the selector.
