# US 2025/0085985 A1 · Method and apparatus for operation recording and playback

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

- Number: US 2025/0085985 A1
- Document ID: US20250085985A1
- Status: Published application
- Kind: A1
- Application number: 18/768,840
- Filed: 2024-07-10
- Published: 2025-03-13
- Earliest claimed: 2023-09-13
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Chen CHEN; Wei ZHANG
- Web page: https://patentgrep.com/patent/US20250085985A1

## CPC

- G06F 9/451: Execution arrangements for user interfaces
- G06F 11/3438: {monitoring of user actions (tracking the activity of the user H04L67/535)}
- G06N 20/00: Machine learning
- G06N 20/20: Ensemble learning
- G06V 10/462: {Salient features, e.g. scale invariant feature transforms [SIFT]}
- G06V 10/774: Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
- G06V 30/148: Segmentation of character regions
- G06V 30/18: Extraction of features or characteristics of the image
- H04N 21/41407: {embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop (constructional details of equipment or arrangements specially adapted for portable computer application G06F1/1626; arrangements specially adapted for mobile receivers in broadcast systems H04H20/57)}
- H04N 21/4334: {Recording operations (recording of a television signal H04N5/76; arrangements for recording or accumulating broadcast information or broadcast-related information H04H60/27)}
- H04N 21/47217: {for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks (specific graphical features in visual interfaces H04N21/4312)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method for recording and playback including: recording an operation of a first device based on an operation recording instruction to obtain a user operation record; acquiring environment data of the first device; and performing user operations of the user operation record sequentially in a second device based on an operation playback instruction, where the performing the user operations of the user operation record includes, for one of the user operations: determining a corresponding target control in the second device based on the environment data of the first device and environment data of the second device, and performing a respective user operation based on the target control.

## Claims

### Claim 1

A method for recording and playback, comprising:
recording an operation of a user in a first device based on an operation recording instruction to obtain a user operation record;
acquiring environment data of the first device; and
performing user operations of the user operation record sequentially in a second device based on an operation playback instruction,
wherein the performing the user operations of the user operation record comprises, for one of the user operations:
determining a corresponding target control in the second device based on the environment data of the first device and environment data of the second device, and
performing a respective user operation based on the target control.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the environment data includes:
device-related data, application-related data, user-related data, or user operation-related data, and
wherein the user operation-related data includes:
a page screenshot, an XML layout file of a page, or a control screenshot of an operation object control.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the determining the corresponding target control in the second device based on the environment data of the first device and the environment data of the second device comprises:
extracting positioning feature data corresponding to an operation based on the environment data of the first device;
obtaining a prediction value of one or more positioning methods according to a positioning method prediction model based on the positioning feature data;
determining a candidate positioning method among the one or more positioning methods for positioning the target control in the second device according to the prediction value; and
determining the target control in the second device based on the candidate positioning method and the environment data of the first device.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the positioning feature data includes data based on:
whether a login user corresponding to the operation recording instruction and a login user corresponding to the operation playback instruction are the same,
whether a device corresponding to the operation recording instruction and a device corresponding to the operation playback instruction are the same,
whether an operating platform of the device corresponding to the operation recording instruction and an operating platform of the device corresponding to the operation playback instruction are the same,
whether an application corresponding to the operation recording instruction and an application corresponding to the operation playback instruction are the same,
whether a resource identification attribute of the target control is included in the environment data of the first device and the environment data of the second device,
an XPath path positioning step number of the target control in the environment data of the first device,
whether the target control has a different text string in the first device and the second device,
a text string attribute length of the target control in the first device,
an index value of a control type of the target control in the first device,
an interface content similarity between the first device and the second device,
a page similarity between the first device and the second device, or
an interface style similarity between the first device and the second device.

### Claim 5 (depends on 3)

The method according to claim 3, wherein the one or more positioning methods include:
a control attribute-based positioning method, or an interface matching method, and
wherein the interface matching method includes:
an image matching positioning method or a layout matching positioning method.

### Claim 6 (depends on 3)

The method according to claim 3, wherein the determining the candidate positioning method comprises:
screening out a positioning method based on the prediction value being greater than a pre-set threshold value from the one or more positioning methods to obtain the candidate positioning method; or
ordering the one or more positioning methods in an order based on respective prediction values, and selecting a number of positioning methods from the order as the candidate positioning method, and
wherein the number of positioning methods is a pre-set number of candidate positioning methods.

### Claim 7 (depends on 3)

The method according to claim 3, wherein the determining the target control in the second device based on the candidate positioning method and the environment data of the first device comprises:
traversing the candidate positioning method according to an order of respective prediction values; and
determining the target control of a current operation according to the candidate positioning method based on the environment data of the first device until the target control is determined or the traversing is completed.

### Claim 8

An electronic device comprising a processor and a memory,
the memory storing an application program executable by the processor for causing the processor to perform:
recording an operation of a user in a first device based on an operation recording instruction to obtain a user operation record;
acquiring environment data of the first device; and
performing user operations of the user operation record sequentially in a second device based on an operation playback instruction,
wherein the performing the user operations of the user operation record includes, for one of the user operations:
determining a corresponding target control in the second device based on the environment data of the first device and environment data of the second device, and
performing a respective user operation based on the target control.

### Claim 9 (depends on 8)

An electronic device according to claim 8, wherein the environment data comprises:
device-related data, application-related data, user-related data, or user operation-related data,
wherein the user operation-related data comprises:
a page screenshot, an XML layout file of a page, or a control screenshot of an operation object control.

### Claim 10 (depends on 8)

An electronic device according to claim 8, wherein the determining the corresponding target control in the second device based on the environment data of the first device and the environment data of the second device includes:
extracting positioning feature data corresponding to an operation based on the environment data of the first device;
obtaining a prediction value of one or more positioning methods according to a positioning method prediction model based on the positioning feature data;
determining a candidate positioning method among the one or more positioning methods for positioning the target control in the second device according to the prediction value; and
determining the target control in the second device based on the candidate positioning method and the environment data of the first device.

### Claim 11 (depends on 10)

An electronic device according to claim 10, wherein the positioning feature data comprises data based on:
whether a login user corresponding to the operation recording instruction and a login user corresponding to the operation playback instruction are the same,
whether a device corresponding to the operation recording instruction and a device corresponding to the operation playback instruction are the same,
whether an operating platform of the device corresponding to the operation recording instruction and an operating platform of the device corresponding to the operation playback instruction are the same,
whether an application corresponding to the operation recording instruction and an application corresponding to the operation playback instruction are the same,
whether a resource identification attribute of the target control is included in the environment data of the first device and the environment data of the second device,
an XPath path positioning step number of the target control in the environment data of the first device,
whether the target control has a different text string in the first device and the second device,
a text string attribute length of the target control in the first device,
an index value of a control type of the target control in the first device,
an interface content similarity between the first device and the second device,
a page similarity between the first device and the second device, or
an interface style similarity between the first device and the second device.

### Claim 12 (depends on 10)

An electronic device according to claim 10, wherein the one or more positioning methods comprise:
a control attribute-based positioning method or an interface matching method,
wherein the interface matching method comprises:
an image matching positioning method or a layout matching positioning method.

### Claim 13 (depends on 10)

An electronic device according to claim 10, wherein the determining the candidate positioning method includes:
screening out a positioning method based on the prediction value being greater than a pre-set threshold value from the one or more positioning methods to obtain the candidate positioning method; or
ordering the one or more positioning methods in an order based on respective prediction values, and selecting a number of positioning methods from the order as the candidate positioning method,
wherein the number of positioning methods is a pre-set number of candidate positioning methods.

### Claim 14 (depends on 10)

An electronic device according to claim 10, wherein the determining the target control in the second device based on the candidate positioning method and the environment data of the first device includes:
traversing the candidate positioning method according to an order of respective prediction values; and
determining the target control of a current operation according to the candidate positioning method based on the environment data of the first device until the target control is determined or the traversing is completed.

### Claim 15

A non-transitory machine-readable medium comprising instructions that when executed cause at least one processor of an electronic device to:
record an operation of a first device based on an operation recording instruction to obtain a user operation record;
acquire environment data of the first device; and
perform user operations of the user operation record sequentially in a second device based on an operation playback instruction,
wherein performing the user operations comprises, for one of the user operations:
determining a corresponding target control in the second device based on the environment data of the first device and environment data of the second device, and
performing a respective user operation based on the target control.
