RPA dynamic scrolling page collection method, system, device and medium
By obtaining and scrolling pages in the RPA tool and positioning elements in the list to be operated, the existing RPA tool cannot handle dynamic loading of pages and dynamic refreshing of lists, achieving wider functional support.
Patent Information
- Application Number
- CN202210828056.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-22
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2042-06-22
AI Technical Summary
Existing RPA tools cannot support dynamic loading of pages and dynamic refreshing of lists, and can only handle static pages.
By obtaining the page to be operated, scrolling the page to locate the displayed list of operations. If there is a historical operation record in the list, the elements in the list to be operated are obtained and positioned according to the records, and the functions of dynamically loading the page and automatically refreshing the list are realized.
It realizes support for dynamically loading pages and automatic refresh lists, expanding the functional scope of RPA tools.
Smart Images

Figure CN115202523B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology, and in particular to an RPA dynamic scrolling page collection method, system, device and medium. Background Art
[0002] RPA stands for Robotic Process Automation, which achieves process automation by imitating the manual operation of users on computers. Existing RPA tools mainly open web pages, browse different pages and download content of interest automatically by automatically operating the mouse and keyboard or simulating events, which can be used for data statistics, comparison, chart display and system migration.
[0003] However, current RPA tools usually operate on fixed elements or positions on the page, so they can only support the configuration of static pages, and lack the function of dynamically loading pages and dynamically refreshing lists. Summary of the invention
[0004] The present invention aims to at least solve the technical problems existing in the prior art. To this end, the present invention proposes an RPA dynamic scrolling page collection method to realize the functions of dynamically loading pages and automatically refreshing lists.
[0005] A first aspect of the present invention provides an RPA dynamic scrolling page collection method, comprising the following steps:
[0006] Get the page to be operated;
[0007] Scrolling the page to be operated to locate the displayed list of operations to be performed on the page to be operated;
[0008] If there is a historical operation record in the list to be operated, obtaining the Nth element operated in the list to be operated according to the historical operation record;
[0009] Locate the N+1th element in the to-be-operated list according to the Nth element;
[0010] All elements to be operated after the N+1th element in the list to be operated are located in sequence according to the N+1th element.
[0011] According to the embodiments of the present invention, there are at least the following technical effects:
[0012] This method obtains a page to be operated, scrolls the page to be operated, locates a displayed list of operations to be operated on the page to be operated, and if there is a historical operation record in the list to be operated, obtains the Nth element operated in the list to be operated according to the historical operation record, locates the N+1th element in the list to be operated according to the Nth element, and locates all the elements to be operated after the N+1th element in the list to be operated according to the N+1th element, thereby realizing the functions of dynamically loading pages and automatically refreshing lists.
[0013] According to some embodiments of the present invention, obtaining the page to be operated is to locate the page to be operated by configuring a mouse or keyboard operation.
[0014] According to some embodiments of the present invention, obtaining the Nth element operated in the to-be-operated list according to the historical operation record includes:
[0015] If the historical operation record is empty, locate the first element of the list to be operated, where the first element is the Nth element operated in the list to be operated;
[0016] If the historical operation record is not empty, the Nth element in the to-be-operated list is obtained according to the last element in the historical operation record that has been operated on.
[0017] According to some embodiments of the present invention, obtaining the Nth element operated in the to-be-operated list according to the last element that has been operated on in the historical operation record includes:
[0018] If the list to be operated contains the last element in the historical operation record that has been operated on, then the last element in the historical operation record that has been operated on is the Nth element in the list to be operated on;
[0019] If the to-be-operated list does not have the last element in the historical operation record that has been operated on, then find the Nth element in the to-be-operated list that has been operated on according to the unique identifier of the last element in the historical operation record that has been operated on:
[0020] If an adaptable element is found in the list to be operated according to the last element, the Nth element is obtained;
[0021] If no matching element is found in the list of pending operations according to the last element, then the list of pending operations is returned to search again according to the content of the last element:
[0022] If an adaptable element is found in the list to be operated according to the content of the last element, the Nth element is obtained;
[0023] If no matching element is found in the list to be operated according to the content of the last element, the page is repositioned.
[0024] According to some embodiments of the present invention, locating the N+1th element in the to-be-operated list according to the Nth element includes:
[0025] If the N+1th element exists, directly locate the N+1th element;
[0026] If the N+1th element does not exist, obtain M elements in the historical operation record, and scroll and load a new page according to the unique identifiers of the M elements, where the M elements are the N-M+1th to Nth elements in the historical operation record:
[0027] If the M elements are refreshed later, relocate to the pending operation list, and find the Nth element of the last operation through the unique identifiers of the M elements;
[0028] According to the Nth element of the last operation, locate the N+1th element.
[0029] According to some embodiments of the present invention, the method further includes: if the M elements are not refreshed, ending the dynamic page scrolling.
[0030] According to some embodiments of the present invention, the further comprising:
[0031] If the Nth element is configured with a details page, jump to the details page of the Nth element;
[0032] After the operation on the details page is completed, the list to be operated is automatically located.
[0033] In a second aspect of the present invention, the present invention provides an RPA dynamic scrolling page collection system, comprising the following modules:
[0034] The page acquisition module is used to obtain the page to be operated;
[0035] A list acquisition module, used for scrolling the page to be operated and locating the list to be operated displayed in the page to be operated;
[0036] A data acquisition module, configured to obtain the Nth element operated in the list to be operated according to the historical operation record if there is a historical operation record in the list to be operated;
[0037] A data locating module, used for locating the N+1th element in the to-be-operated list according to the Nth element;
[0038] The data end module is used to locate all the elements to be operated after the N+1th element in the list to be operated in sequence according to the N+1th element.
[0039] This system obtains the page to be operated, scrolls the page to be operated, locates the list to be operated that has been displayed in the page to be operated, and if there is a historical operation record in the list to be operated, obtains the Nth element operated in the list to be operated according to the historical operation record, locates the N+1th element in the list to be operated according to the Nth element, and locates all the elements to be operated after the N+1th element in the list to be operated according to the N+1th element, thereby realizing the functions of dynamic loading of pages and dynamic refresh of lists.
[0040] In a third aspect, the present invention provides an RPA dynamic scrolling page collection device, comprising at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions executable by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute an RPA dynamic scrolling page collection method as described above.
[0041] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the RPA dynamic scrolling page collection as described above.
[0042] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0044] Figure 1 A flowchart of an RPA dynamic scrolling page collection method provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0045] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0046] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0047] Current RPA tools usually operate on fixed elements or locations on the page, so they can only support the configuration of static pages and lack the function of dynamically loading pages and dynamically refreshing lists.
[0048] Reference Figure 1 The present invention provides an RPA dynamic scrolling page acquisition method, which includes the following steps:
[0049] Step S101, obtaining the page to be operated.
[0050] Step S102: Scroll the page to be operated to locate the displayed list of operations to be performed on the page to be operated.
[0051] Step S103: If there is a historical operation record in the list to be operated, then the Nth element in the list to be operated that has been operated is obtained according to the historical operation record.
[0052] Step S104: locate the N+1th element in the list to be operated according to the Nth element.
[0053] Step S105: locate all elements to be operated after the N+1th element in the list to be operated in sequence according to the N+1th element.
[0054] In some embodiments, in step S101, obtaining the page to be operated is to locate the page to be operated by configuring a mouse or keyboard operation.
[0055] In some embodiments, in step S103, obtaining the Nth element to be operated in the list to be operated according to the historical operation record includes:
[0056] If the historical operation record is empty, the first element of the list to be operated is located, and the first element is the Nth element operated in the list to be operated.
[0057] If the historical operation record is not empty, the Nth element in the pending operation list is obtained according to the last element in the historical operation record that has been operated on.
[0058] In some embodiments, obtaining the Nth element to be operated in the to-be-operated list according to the last element that has been operated on in the historical operation record includes:
[0059] If the list to be operated contains the last element in the history operation record that has been operated on, then the last element in the history operation record that has been operated on is the Nth element in the list to be operated on.
[0060] If the list of pending operations does not have the last element in the historical operation record that has been operated on, then find the Nth element in the list of pending operations that has been operated on according to the unique identifier of the last element in the historical operation record:
[0061] If an adaptable element is found in the list to be operated according to the last element, the Nth element is obtained.
[0062] If no matching element is found in the list of pending operations based on the last element, return to the list of pending operations and search again based on the content of the last element:
[0063] If an adaptable element is found in the list to be operated according to the content of the last element, the Nth element is obtained.
[0064] If no matching element is found in the list of pending operations based on the content of the last element, the page is repositioned.
[0065] In some embodiments, in step S104, locating the N+1th element in the to-be-operated list according to the Nth element includes:
[0066] There is an N+1th element, directly locate the N+1th element.
[0067] The N+1th element does not exist, and the M elements in the historical operation record are obtained. A new page is scrolled and loaded according to the unique identifiers of the M elements. The M elements are the N-M+1th to Nth elements in the historical operation record.
[0068] If refreshed after M elements, reposition to the list of pending operations, and find the Nth element of the last operation through the unique identifiers of the M elements.
[0069] According to the Nth element of the last operation, locate the N+1th element.
[0070] In some embodiments, it also includes: if there is no refresh after M elements, the dynamic page scrolling is ended.
[0071] In some embodiments, it also includes:
[0072] If the Nth element is configured with a details page, jump to the details page of the Nth element.
[0073] After completing the operations on the details page, the system will automatically locate you to the list of items to be operated.
[0074] In order to facilitate the understanding of those skilled in the art, a group of best embodiments are provided below:
[0075] 1. Get the list of pending operations:
[0076] Obtaining the page to be operated is to locate the page to be operated by configuring the mouse or keyboard operation.
[0077] Scroll the pending operations page to locate the pending operations list displayed on the pending operations page.
[0078] 2. Get the Nth element:
[0079] According to the historical operation records, the Nth element in the list to be operated is obtained, including:
[0080] If the historical operation record is empty, the first element of the list to be operated is located, and the first element is the Nth element operated in the list to be operated.
[0081] If the historical operation record is not empty, the Nth element in the pending operation list is obtained according to the last element in the historical operation record that has been operated on.
[0082] According to the last element in the history operation record that has been operated, the Nth element in the list to be operated is obtained, including:
[0083] If the list to be operated contains the last element in the history operation record that has been operated on, then the last element in the history operation record that has been operated on is the Nth element in the list to be operated on.
[0084] If the list of pending operations does not have the last element in the historical operation record that has been operated on, then find the Nth element in the list of pending operations that has been operated on according to the unique identifier of the last element in the historical operation record:
[0085] If an adaptable element is found in the list to be operated according to the last element, the Nth element is obtained.
[0086] If no matching element is found in the list of pending operations based on the last element, return to the list of pending operations and search again based on the content of the last element:
[0087] If an adaptable element is found in the list to be operated according to the content of the last element, the Nth element is obtained.
[0088] If no matching element is found in the list of pending operations based on the content of the last element, the page is repositioned.
[0089] 3. Get the N+1th element:
[0090] Locate the N+1th element in the list to be operated based on the Nth element, including:
[0091] There is an N+1th element, directly locate the N+1th element.
[0092] The N+1th element does not exist, and the M elements in the historical operation record are obtained. A new page is scrolled and loaded according to the unique identifiers of the M elements. The M elements are the N-M+1th to Nth elements in the historical operation record.
[0093] If refreshed after M elements, reposition to the list of pending operations, and find the Nth element of the last operation through the unique identifiers of the M elements.
[0094] According to the Nth element of the last operation, locate the N+1th element.
[0095] If there is no refresh after M elements, the dynamic page scrolling ends.
[0096] This method obtains a page to be operated, scrolls the page to be operated, locates a displayed list of operations to be operated on the page to be operated, and if there is a historical operation record in the list to be operated, obtains the Nth element operated in the list to be operated according to the historical operation record, locates the N+1th element in the list to be operated according to the Nth element, and locates all the elements to be operated after the N+1th element in the list to be operated according to the N+1th element, thereby realizing the functions of dynamically loading pages and automatically refreshing lists.
[0097] Based on the above embodiment, this embodiment further provides an RPA dynamic scrolling page acquisition system, including a page acquisition module 1001, a list acquisition module 1002, a data acquisition module 1003, a data positioning module 1004 and a data end module 1005:
[0098] The page acquisition module 1001 is used to acquire the page to be operated;
[0099] The list acquisition module 1002 is used to scroll the page to be operated and locate the list to be operated displayed in the page to be operated;
[0100] The data acquisition module 1003 is used to obtain the Nth element in the list to be operated according to the historical operation record if there is a historical operation record in the list to be operated;
[0101] The data locating module 1004 is used to locate the N+1th element in the to-be-operated list according to the Nth element;
[0102] The data ending module 1005 is used to locate all elements to be operated after the N+1th element in the list to be operated in sequence according to the N+1th element.
[0103] This system obtains the page to be operated, scrolls the page to be operated, locates the list to be operated that has been displayed in the page to be operated, and if there is a historical operation record in the list to be operated, obtains the Nth element operated in the list to be operated according to the historical operation record, locates the N+1th element in the list to be operated according to the Nth element, and locates all the elements to be operated after the N+1th element in the list to be operated according to the N+1th element, thereby realizing the functions of dynamic loading of pages and dynamic refresh of lists.
[0104] It should be noted that the system embodiment provided in this implementation and the above-mentioned method embodiment are based on the same inventive concept, so the relevant contents of the above-mentioned method embodiment are also applicable to the system embodiment and will not be repeated here.
[0105] In one embodiment of the present application, an RPA dynamic scrolling page collection device is provided; the device can be any type of intelligent terminal, such as a mobile phone, a tablet computer, a personal computer, etc. Specifically, the device includes: one or more control processors and a memory, and this example takes a control processor as an example. The control processor and the memory can be connected via a bus or other methods, and this example takes the connection via a bus as an example.
[0106] As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the electronic device in the embodiment of the present invention; the control processor implements a RPA dynamic scrolling page acquisition method of the above method embodiment by running the non-transitory software programs, instructions and modules stored in the memory. The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required by at least one function; in addition, the memory may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the control processor, and these remote memories may be connected to the electronic device via a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof. One or more modules are stored in the memory, and when executed by one or more control processors, a RPA dynamic scrolling page acquisition method in the above method embodiment is executed.
[0107] An embodiment of the present invention also provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are executed by one or more control processors. For example, the one or more control processors can execute an RPA dynamic scrolling page collection method in the above method embodiment.
[0108] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform. Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and the program can include the process of the embodiment of the above method when executed. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0109] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0110] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
Claims
1. A RPA dynamic scrolling page collection method, characterized in that: The following steps are involved: Get the page to be operated; Scrolling the page to be operated to locate the displayed list of operations to be performed on the page to be operated; If there is a historical operation record in the list to be operated, the first operation in the list to be operated is obtained according to the historical operation record. elements; According to the said The element locates the first element in the list to be operated elements; According to the said The element locates the first element in the list to be operated elements, including: There is the element, directly locate the elements; There is no such elements, obtain the historical operation record elements, according to the The unique identifier of the element scrolls to load a new page. The element is the first to Elements: If the elements, and then repositions to the pending operation list, and passes the The unique identifier of the element is found elements; According to the last operation element, positioned at elements; According to elements in turn to locate the first All elements to be operated after the element.
2. According to claim 1, a RPA dynamic scrolling page collection method is characterized in that: The obtaining of the page to be operated is to locate the page to be operated by configuring a mouse or keyboard operation.
3. According to claim 1, a RPA dynamic scrolling page collection method is characterized in that: The first one to be operated in the list to be operated is obtained according to the historical operation record elements, including: If the historical operation record is empty, locate the first element of the pending operation list, which is the first element to be operated in the pending operation list. elements; If the historical operation record is not empty, the first element in the pending operation list that has been operated is obtained according to the last element in the historical operation record that has been operated. elements.
4. The RPA dynamic scrolling page collection method according to claim 3 is characterized in that: The first element in the list to be operated is obtained according to the last element in the historical operation record that has been operated. elements, including: If the list of pending operations contains the last element in the history operation record that has been operated on, then the last element in the history operation record that has been operated on is the first element in the list of pending operations. elements; If the to-be-operated list does not have the last element in the historical operation record that has been operated on, then find the last element in the to-be-operated list that has been operated on according to the unique identifier of the last element in the historical operation record. Elements: If an adaptable element is found in the list to be operated according to the last element, the first elements; If no matching element is found in the list of pending operations according to the last element, then the list of pending operations is returned to search again according to the content of the last element: If an adaptable element is found in the list to be operated according to the content of the last element, the first elements; If no matching element is found in the list to be operated according to the content of the last element, the page is repositioned.
5. The RPA dynamic scrolling page collection method according to claim 1 is characterized in that: Also includes: If the If there is no refresh after the element is displayed, the dynamic page scrolling ends.
6. The RPA dynamic scrolling page collection method according to any one of claims 1 to 4, characterized in that: Also includes: If the If an element is configured with a details page, jump to the The details page of an element; After operating the details page, the list to be operated is automatically located.
7. An RPA dynamic scrolling page collection system, characterized in that: include: The page acquisition module is used to obtain the page to be operated; A list acquisition module, used for scrolling the page to be operated and locating the list to be operated displayed in the page to be operated; A data acquisition module is used to obtain the first data item in the list to be operated according to the historical operation record if there is a historical operation record in the list to be operated. elements; A data positioning module is used to locate the The element locates the first element in the list to be operated elements; Data end module, used according to elements in turn to locate the first All elements to be operated after the element; According to the said The element locates the first element in the list to be operated elements, including: There is the element, directly locate the elements; There is no such elements, obtain the historical operation record elements, according to the The unique identifier of the element scrolls to load a new page. The element is the first to Elements: If the elements, and then repositions to the pending operation list, and passes the The unique identifier of the element is found elements; According to the last operation element, positioned at elements.
8. An RPA dynamic scrolling page collection device, characterized in that: It includes at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute an RPA dynamic scrolling page collection method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute an RPA dynamic scrolling page collection method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Page skipping method and device and electronic equipment
CN111310086A
Page display method and device, electronic equipment and storage medium
CN113779351A