CN110598148A - Page operation behavior unifying method based on H5 and related equipment - Google Patents

Page operation behavior unifying method based on H5 and related equipment Download PDF

Info

Publication number
CN110598148A
CN110598148A CN201910747771.XA CN201910747771A CN110598148A CN 110598148 A CN110598148 A CN 110598148A CN 201910747771 A CN201910747771 A CN 201910747771A CN 110598148 A CN110598148 A CN 110598148A
Authority
CN
China
Prior art keywords
page
sub
elements
acquiring
execution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910747771.XA
Other languages
Chinese (zh)
Inventor
林泽全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201910747771.XA priority Critical patent/CN110598148A/en
Publication of CN110598148A publication Critical patent/CN110598148A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/954Navigation, e.g. using categorised browsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to the technical field of UI (user interface) design, in particular to a page operation behavior unifying method based on H5 and related equipment, comprising the following steps: acquiring configuration information of a page, and generating sub-elements corresponding to page content according to the configuration information; acquiring a page area of user operation, extracting sub-elements related to the user operation from sub-elements corresponding to the page content according to the page area, and clustering all the sub-elements related to the user operation to obtain a parent element to be executed; and acquiring an execution function corresponding to the parent element to be executed, participating the parent element to be executed into the execution function for execution, comparing an execution result with an expected result of user operation, if the execution result is consistent with the expected result, generating a webpage node, and otherwise, not generating the webpage node. According to the method and the device, the user operation behaviors are effectively classified to form the uniform event, and then the event is proxied to the webpage node, so that the difference of function realization caused by the difference of different user operation behaviors is avoided.

Description

Page operation behavior unifying method based on H5 and related equipment
Technical Field
The application relates to the technical field of UI (user interface) design, in particular to a page operation behavior unifying method based on H5 and related equipment.
Background
H5, short for HTML5, is an advanced web page technology. H5 has more interaction and functionality than H4, one of the biggest advantages is multimedia support on mobile devices. We see that the invitations, slides, and mini-games are H5 pages at ordinary times, which is essentially no different from the pages we see on the web at ordinary times. The H5 has the greatest advantages that the platform is crossed, developers do not need too much adaptation work, and users can access the network address by opening the network address without downloading.
However, in the process of using by the user, due to different operation habits, the function realized by the key on the H5 page is inconsistent with the function actually realized by the user. This may cause a user to be confused during use, thereby degrading the user experience.
Disclosure of Invention
Based on this, it is necessary to provide a page operation behavior unification and related device based on H5, because the H5 page has a problem that the functions realized by the page buttons are not consistent with the functions to be realized by the user.
A page operation behavior unification method based on H5 includes the following steps:
acquiring configuration information of a page, and generating sub-elements corresponding to page content according to the configuration information;
acquiring a page area of user operation, extracting sub-elements related to the user operation from sub-elements corresponding to the page content according to the page area, and clustering all the sub-elements related to the user operation to obtain a parent element to be executed;
and acquiring an execution function corresponding to the parent element to be executed, participating the parent element to be executed into the execution function for execution, comparing an execution result with an expected result of user operation, if the execution result is consistent with the expected result, generating a webpage node, and otherwise, not generating the webpage node.
In one possible embodiment, the obtaining the configuration information of the page and generating the sub-element corresponding to the page content according to the configuration information includes:
acquiring website information corresponding to a page, and acquiring a webpage corresponding to the page from the website information;
acquiring a type keyword in the webpage, and acquiring configuration information of the webpage according to the type keyword;
according to the configuration information, obtaining initial positions of sub-elements on the page, traversing the page, obtaining display information on the initial positions, recording the positions of the sub-elements if the display information contains the sub-elements, and ignoring the initial positions if the display information does not contain the sub-elements.
In one possible embodiment, the obtaining a page area of a user operation, extracting, according to the page area, child elements related to the user operation from child elements corresponding to the page content, and clustering all the child elements related to the user operation to obtain parent elements to be executed includes:
acquiring a page area operated by a user, extracting all sub-elements in the page area, comparing the extracted sub-elements with the state before the user operates, and identifying changed sub-elements;
acquiring a clustering threshold value of sub-element clustering, and clustering the changed sub-elements to generate a plurality of sub-element sets when the number of the changed sub-elements reaches the clustering threshold value;
and extracting the element class name fields in each sub-element set, and summarizing the sub-elements with the same element class name fields to obtain the parent element to be executed.
In one possible embodiment, the obtaining an execution function corresponding to the parent element to be executed, participating the parent element to be executed in the execution function for execution, comparing an execution result with an expected result of a user operation, and if the execution result is consistent with the expected result, generating a webpage node, otherwise, not generating the webpage node, includes:
acquiring a plurality of execution functions corresponding to the parent element to be executed, respectively adding the parent element to be executed into each execution function, and obtaining a plurality of execution results after the parent element to be executed is added;
and comparing each execution result with an expected result of the user operation, if the number of the execution results consistent with the expected results exceeds an expected threshold value, generating a webpage node, and otherwise, not generating the webpage node.
In one possible embodiment, the obtaining website information corresponding to a page, and obtaining a web page corresponding to the page from the website information include:
acquiring a configuration file containing page login information, and extracting the page login information from the configuration file;
sending the page login information to a server of each website for login verification, obtaining a login verification result, and determining website information corresponding to the page according to the login verification result;
and acquiring a webpage naming rule corresponding to the website information, and determining a webpage corresponding to the webpage according to the naming rule.
In one possible embodiment, the obtaining a page area operated by a user, extracting all sub-elements in the page area, comparing the extracted sub-elements with a state before the user does not operate, and identifying a changed sub-element includes:
the method comprises the steps of obtaining original pixel values of all points on a display screen, obtaining real-time pixel values of all points on the display screen when a user operates, comparing the original pixel values with the real-time pixel values, extracting change points with changed pixel values from the display screen, and connecting all the change points into a closed graph to form a page area operated by the user;
acquiring position information of all sub-elements corresponding to page content, and acquiring all sub-elements contained in the page area according to the position information;
extracting all sub-elements in the page area, acquiring initial parameters of all the sub-elements, and comparing the sub-element parameters operated by the user with the initial parameters to obtain changed sub-elements.
In one possible embodiment, the comparing each execution result with an expected result of the user operation, and if the number of execution results consistent with the expected result exceeds an expected threshold, generating a web page node, otherwise, not generating includes:
acquiring a display interface of a user expected result, and extracting a first page of display surface characteristic elements in the display interface of the user expected result;
acquiring a display page of an execution result, and extracting a second display page characteristic element in the execution result;
comparing the first display page characteristic element with the second display page characteristic element, if the first display page characteristic element is consistent with the second display page characteristic element, marking an execution result as a result meeting an expected result, otherwise, not marking the execution result;
and counting the number of the execution results which accord with the expected results, if the number of the execution results which accord with the expected results exceeds an expected threshold value, generating a webpage node, otherwise, not generating.
An H5-based page operation behavior unifying device comprises the following modules:
the child element generation module is used for acquiring the configuration information of the page and generating child elements corresponding to the content of the page according to the configuration information;
the parent element determining module is used for acquiring a page area of user operation, extracting child elements related to the user operation from child elements corresponding to the page content according to the page area, and clustering all the child elements related to the user operation to obtain parent elements to be executed;
and the webpage node generating module is set to acquire an execution function corresponding to the parent element to be executed, the parent element to be executed is involved in the execution function for execution, the execution result is compared with an expected result of user operation, if the execution result is consistent with the expected result, a webpage node is generated, and otherwise, the webpage node is not generated.
A computer device comprising a memory and a processor, the memory having stored therein computer readable instructions which, when executed by the processor, cause the processor to perform the steps of the above-described H5-based page operation behavior unification method.
A storage medium storing computer readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the above-described H5-based page operation behavior unification method.
Compared with the existing mechanism, the method has the following advantages:
(1) the user operation behaviors are effectively classified to form a uniform event, then the event is proxied to the webpage node, and when the user operates again, the related operation can be completed only by clicking the webpage node, so that the difference of function realization caused by the difference of different user operation behaviors is avoided;
(2) the page information is effectively analyzed, so that which sub-elements exist on the page can be well determined, and the sub-elements can be conveniently classified when the operation behaviors are uniform;
(3) the page information is effectively analyzed, so that which sub-elements exist on the page can be well determined, and the sub-elements can be conveniently classified when the operation behaviors are uniform;
(4) the effective generation of the webpage nodes enables the same type of events to realize the consistency of user operation behaviors and page display states through proxy to the webpage nodes.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application.
FIG. 1 is a flowchart illustrating an overall method for unifying page operation behaviors based on H5 according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating a sub-element generation process in an H5-based page operation behavior unification method according to an embodiment of the present application;
FIG. 3 is a diagram illustrating a parent element determination process in an H5-based page operation behavior unification method according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a webpage node generating process in an H5-based page operation behavior unifying method according to an embodiment of the present application;
fig. 5 is a block diagram of an H5-based page operation behavior unification apparatus according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
Fig. 1 is an overall flowchart of a method for unifying page operation behaviors based on H5 in an embodiment of the present application, and as shown in fig. 1, the method for unifying page operation behaviors based on H5 includes the following steps:
s1, acquiring configuration information of the page, and generating sub-elements corresponding to the content of the page according to the configuration information;
specifically, the configuration information of the page mainly includes the size of the page, whether the page is a plain text page or a page with pictures or animations, and the like; for example, if a face element is drawn on the page, the corresponding sub-element is a face image.
S2, acquiring a page area of user operation, extracting child elements related to the user operation from child elements corresponding to the page content according to the page area, and clustering all the child elements related to the user operation to obtain parent elements to be executed;
specifically, when a user operates a page, the user usually adopts operation modes such as inputting query information, moving the page to browse contents, and the like. Taking the example of the user inputting the query information, when the user inputs the query information, the user may input the website information to be queried by using the website input field on the page, or may input the content to be queried in the search box on the page, and then search for the content to be obtained. Here, the child elements are the web address input field and the search box, respectively, and the parent element obtained by clustering the two child elements is the "search item".
S3, obtaining an execution function corresponding to the parent element to be executed, participating the parent element to be executed into the execution function for execution, comparing the execution result with an expected result of user operation, if the execution result is consistent with the expected result, generating a webpage node, otherwise, not generating the webpage node.
The webpage node is a virtual button used for carrying out event proxy on user operation, and when a user wants to repeat a series of actions, the user can realize the operation effect which is wanted to be achieved only by clicking the network node. Executing the function refers to executing a function corresponding to an event, for example, if a search operation is to be performed, the function is corresponding to a search path, that is, a parent element is, for example, referred to in the search path function to obtain a search result corresponding to the parent element.
According to the method and the device, the user operation behaviors are effectively classified to form the uniform event, then the event is proxied to the webpage node, when the user operates again, the user can complete related operations only by clicking the webpage node, and difference of function realization caused by difference of different user operation behaviors is avoided.
Fig. 2 is a schematic diagram of a sub-element generation process in an H5-based page operation behavior unification method in an embodiment of the present application, as shown in the figure, the S1 obtaining configuration information of a page, and generating a sub-element corresponding to a page content according to the configuration information includes:
s11, acquiring website information corresponding to a page, and acquiring a webpage corresponding to the page from the website information;
the web pages can be divided into dynamic detail web pages and static detail web pages, each detail web page is composed of a plurality of codes, and the codes can reflect parameter information in the page making process.
S12, obtaining type keywords in the webpage, and obtaining configuration information of the webpage according to the type keywords;
specifically, the webpage is analyzed, and whether the webpage contains a type keyword is determined; the webpage can be analyzed by using a json analyzer, and the type keywords can reflect the following four types of webpages: a keyword of one of an aggregation class, a list class, a content class, a function class. When the webpage contains one type keyword, determining the configuration information of the webpage according to the type keyword; when the webpage contains two or more than two types of keywords, determining the corresponding type of keywords of the webpage according to the priority of the preset information type, and determining the configuration information of the webpage according to the type of keywords. Different types of pages have different configuration information, for example, a search page needs to be set on a status page, and a list page has a plurality of lists for information display.
The configuration information corresponding to the different types of pages is written in a configuration file, and the configuration information of the pages can be determined through the configuration file only by determining the types of the pages
S13, obtaining the initial position of each sub-element on the page according to the configuration information, traversing the page, obtaining the display information on the initial position, recording the position of the sub-element if the display information contains the sub-element, and ignoring the initial position if the display information does not contain the sub-element.
Specifically, the initial position of the sub-element is determined according to the page type, for example, a search box is generally set at a position 1cm away from the upper edge of the page in the state class page, the sub-element that whether the search box exists in the page can be obtained as long as the "search box" is searched at the position when the page is traversed, and if the "search box" is located at the position, the specific position of the search box is recorded, for example, 0.98cm away from the upper edge of the page; if the search box is not searched, the fact that the sub-element of the search box is not in the page is indicated, namely the sub-element of the search box is omitted.
According to the method and the device for classifying the child elements, the page information is effectively analyzed, so that the child elements existing on the page are well determined, and the child elements are conveniently classified when the operation behaviors are uniform.
Fig. 3 is a schematic diagram illustrating a parent element determination process in an H5-based page operation behavior unification method in an embodiment of the present application, where as shown in the drawing, the S2 is to obtain a page area of a user operation, extract a child element related to the user operation from child elements corresponding to page contents according to the page area, and cluster all the child elements related to the user operation to obtain a parent element to be executed, and the parent element includes:
s21, acquiring a page area operated by a user, extracting all sub-elements in the page area, comparing the extracted sub-elements with the state before the user operates, and identifying changed sub-elements;
specifically, the child elements may be page specific information, such as "football", "basketball", and the like, which may be words or pictures, and the parent elements are hypernyms of the above words, i.e., "sports" or "sports board". That is, the parent element is an abstract word that is a child element, i.e., in the above example, in the category of sports, there are: football, basketball, etc. When a user wants to read the news related to basketball, the user only needs to select the webpage node where the parent element 'sports' corresponding to the child element of basketball is located, and then the news related to 'basketball' can be directly obtained. The method comprises the steps of adopting a pixel point identification mode when sub-element change identification is carried out, namely putting the sub-elements into a rectangular frame, recording pixel values of all pixel points in the rectangular frame, then obtaining the pixel values of the pixel points in the rectangular frame after user operation, comparing the pixel values twice before and after, if the pixel points with inconsistent pixel values exceed a preset threshold value, changing the sub-elements, otherwise, not changing.
S22, acquiring a clustering threshold value of the sub-element clustering, and clustering the changed sub-elements to generate a plurality of sub-element sets when the number of the changed sub-elements reaches the clustering threshold value;
specifically, historical data of the triggering times of the subelements is obtained, and a clustering threshold of the subelements is determined according to the historical data; when the historical data is counted, a counting period can be set, then each sub-element is marked, and the occurrence frequency of the sub-element is determined according to the mark. The load limit of the processor is used for determining the clustering threshold of the sub-elements, namely, if the sub-elements are not clustered, the processor is over-frequency and crashed. And when the number of the sub-elements reaches the clustering threshold value, acquiring the characteristic attribute of each sub-element, and clustering the sub-elements with consistent characteristic attributes to form a plurality of sub-element sets. The characteristic attribute refers to a type attribute of the sub-element, for example, the a sub-element belongs to the tag, the function of the a sub-element is to display that the content contained in the page is "news", the function of the B sub-element belongs to the tag, and the function of the B sub-element is to display that the content contained in the page is "entertainment", so that the a sub-element and the B sub-element can be clustered.
And S23, extracting the element class name fields in each sub-element set, and summarizing the sub-elements with the same element class name fields to obtain a parent element to be executed.
Each parent element to be executed has a name field, a parent element name table can be generated, and then the parent element name table is traversed according to the element class name field to obtain elements with the same name.
In the embodiment, the page information is clustered, so that the information of the same type is classified into a parent element type, and the accuracy in the process of unifying the operation behaviors is improved.
Fig. 4 is a schematic diagram illustrating a webpage node generating process in an H5-based page operation behavior unification method according to an embodiment of the present application, where as shown in the drawing, the S3 obtains an execution function corresponding to the parent element to be executed, participates the parent element to be executed in the execution function, compares an execution result with an expected result of a user operation, and generates a webpage node if the execution result is consistent with the expected result, otherwise, does not generate the webpage node, including:
s31, acquiring a plurality of execution functions corresponding to the parent element to be executed, and respectively adding the parent element to be executed into each execution function to obtain a plurality of execution results after the parent element to be executed is added;
the execution function refers to executing a function corresponding to an event, and all the parent elements to be executed have the execution function corresponding to the parent elements, for example, if the parent elements to be executed are information searches, a search operation is performed, and the corresponding execution function is a function of a search path, that is, the parent elements are entered into the function of the search path to obtain a search result corresponding to the parent elements. Before the analysis of the execution function result is performed, the parent element may be executed twice, that is, the same parent element is executed in the same execution function, if the two results are consistent, the next step is performed, and if the two results are inconsistent, the BUG repair needs to be performed on the interface where the execution function is located. When the interface executes the function calculation, the common BUG has special value mishandling to cause abnormal exit or crash of the program; the value outside the value boundary does not return correct error information. For special values and out-of-boundary values, the BUG repair can be performed by removing the special values and the out-of-boundary values.
And S32, comparing each execution result with an expected result of the user operation, if the number of the execution results consistent with the expected results exceeds an expected threshold value, generating a webpage node, otherwise, not generating the webpage node.
Specifically, the expected threshold may be statistically derived from historical data. After the webpage nodes are generated, event proxy can be carried out on the execution results, and when the operations are executed again, the relevant operations can be completed by clicking the webpage nodes without repeating corresponding operation steps.
According to the method and the device, the webpage nodes are effectively generated, so that the same type of events can be proxied to the webpage nodes to achieve the consistency of the user operation behaviors and the page display states.
In an embodiment, the S11, acquiring website information corresponding to a page, and acquiring a web page corresponding to the page from the website information includes:
acquiring a configuration file containing page login information, and extracting the page login information from the configuration file;
the page login information in the configuration file is generated according to the authentication information and the password information used by the user for logging in the page all the time.
Sending the page login information to a server of each website for login verification, obtaining a login verification result, and determining website information corresponding to the page according to the login verification result;
when the webpage login information is sent to the servers of all websites, the addresses of the servers can be obtained, and the webpage login information can be sent from near to far; if the server passes the verification, the server sends a pass, otherwise the server sends a fail.
And acquiring a webpage naming rule corresponding to the website information, and determining a webpage corresponding to the webpage according to the naming rule.
The naming rule of the webpage comprises the following steps: location settings for pages, navigation, login bars, etc.
In this embodiment, the detailed webpage corresponding to the page is obtained by configuring the well-documented login information.
In one embodiment, the S21, acquiring a page area operated by a user, extracting all sub-elements in the page area, comparing the extracted sub-elements with a state before the user does not operate, and identifying a changed sub-element includes:
the method comprises the steps of obtaining original pixel values of all points on a display screen, obtaining real-time pixel values of all points on the display screen when a user operates, comparing the original pixel values with the real-time pixel values, extracting change points with changed pixel values from the display screen, and connecting all the change points into a closed graph to form a page area operated by the user;
the pixel values may be extracted by OpenCV software.
Acquiring position information of all sub-elements corresponding to page content, and acquiring all sub-elements contained in the page area according to the position information;
extracting all sub-elements in the page area, acquiring initial parameters of all the sub-elements, and comparing the sub-element parameters operated by the user with the initial parameters to obtain changed sub-elements.
The initial parameters mainly refer to parameters such as size, shape, and function of an element, and all of the parameters are generated during page design. A parameter list can be established, parameters with changes are obtained from the parameter list, if the parameter change range is within the error threshold value, the parameter is considered to be unchanged, otherwise, the parameter is considered to be changed.
In the embodiment, the positions of the sub-elements are analyzed, so that the change of the sub-elements is monitored accurately, and the accuracy of analyzing the operation behaviors is improved.
In one embodiment, the S32, comparing each execution result with an expected result of the user operation, and if the number of execution results consistent with the expected result exceeds an expected threshold, generating a web page node, otherwise, not generating, includes:
acquiring a display interface of a user expected result, and extracting a first page of display surface characteristic elements in the display interface of the user expected result;
the display interface of the expected result of the user obtains the interface effect after the user directly operates the page, and the interface effect can be stored in the database in a screen capture mode. The first page feature element refers to an identification element such as a tag of a page, which can distinguish the page from other pages.
Acquiring a display page of an execution result, and extracting a second display page characteristic element in the execution result;
comparing the first display page characteristic element with the second display page characteristic element, if the first display page characteristic element is consistent with the second display page characteristic element, marking an execution result as a result meeting an expected result, otherwise, not marking the execution result;
when comparing, the appearance of the feature elements, namely the outline and the size of the feature elements, is compared, and the positions of the feature elements are also checked, and if the position deviation exceeds an error threshold value, the feature elements are considered to be inconsistent.
And counting the number of the execution results which accord with the expected results, if the number of the execution results which accord with the expected results exceeds an expected threshold value, generating a webpage node, otherwise, not generating.
The webpage nodes are virtual buttons used for carrying out event proxy on user operation, and when a user wants to repeat a series of actions, the user can achieve the desired operation effect by clicking the network nodes.
In the embodiment, through comparison of the characteristic elements, generation of the webpage nodes is effectively limited, so that the user operation behavior and the actual presentation state of the webpage are unified.
In one embodiment, an H5-based page operation behavior unifying apparatus is provided, as shown in fig. 5, including the following modules:
the sub-element generating module 51 is configured to acquire configuration information of a page and generate a sub-element corresponding to the content of the page according to the configuration information;
a parent element determining module 52 configured to obtain a page area of a user operation, extract child elements related to the user operation from child elements corresponding to the page content according to the page area, and cluster all the child elements related to the user operation to obtain a parent element to be executed;
and the webpage node generating module 53 is configured to acquire an execution function corresponding to the parent element to be executed, join the parent element to be executed into the execution function for execution, compare an execution result with an expected result of a user operation, generate a webpage node if the execution result is consistent with the expected result, and otherwise, not generate the webpage node.
In one embodiment, a computer device is provided, the computer device includes a memory and a processor, the memory stores computer readable instructions, and when executed by the processor, the processor executes the steps of the H5-based page operation behavior unification method in the above embodiments.
In one embodiment, a storage medium storing computer-readable instructions is provided, which when executed by one or more processors, cause the one or more processors to perform the steps of the H5-based page operation behavior unification method in the above embodiments. Wherein the storage medium may be a non-volatile storage medium.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, or the like.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-described embodiments are merely illustrative of some embodiments of the present application, which are described in more detail and detail, but are not to be construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A page operation behavior unification method based on H5 is characterized by comprising the following steps:
acquiring configuration information of a page, and generating sub-elements corresponding to page content according to the configuration information;
acquiring a page area of user operation, extracting sub-elements related to the user operation from sub-elements corresponding to the page content according to the page area, and clustering all the sub-elements related to the user operation to obtain a parent element to be executed;
and acquiring an execution function corresponding to the parent element to be executed, participating the parent element to be executed into the execution function for execution, comparing an execution result with an expected result of user operation, if the execution result is consistent with the expected result, generating a webpage node, and otherwise, not generating the webpage node.
2. The method for unifying page operation behaviors based on H5 according to claim 1, wherein the obtaining configuration information of the page and generating sub-elements corresponding to page contents according to the configuration information comprises:
acquiring website information corresponding to a page, and acquiring a webpage corresponding to the page from the website information;
acquiring a type keyword in the webpage, and acquiring configuration information of the webpage according to the type keyword;
according to the configuration information, obtaining initial positions of sub-elements on the page, traversing the page, obtaining display information on the initial positions, recording the positions of the sub-elements if the display information contains the sub-elements, and ignoring the initial positions if the display information does not contain the sub-elements.
3. The method according to claim 1, wherein the acquiring a page area of the user operation, extracting sub-elements related to the user operation from sub-elements corresponding to the page content according to the page area, and clustering all the sub-elements related to the user operation to obtain a parent element to be executed comprises:
acquiring a page area operated by a user, extracting all sub-elements in the page area, comparing the extracted sub-elements with the state before the user operates, and identifying changed sub-elements;
acquiring a clustering threshold value of sub-element clustering, and clustering the changed sub-elements to generate a plurality of sub-element sets when the number of the changed sub-elements reaches the clustering threshold value;
and extracting the element class name fields in each sub-element set, and summarizing the sub-elements with the same element class name fields to obtain the parent element to be executed.
4. The method for unifying page operation behaviors based on H5, according to claim 1, wherein the obtaining of the execution function corresponding to the parent element to be executed, participating the parent element to be executed in the execution function, comparing the execution result with an expected result of a user operation, and if the execution result is consistent with the expected result, generating a web page node, otherwise, not generating the web page node, comprises:
acquiring a plurality of execution functions corresponding to the parent element to be executed, respectively adding the parent element to be executed into each execution function, and obtaining a plurality of execution results after the parent element to be executed is added;
and comparing each execution result with an expected result of the user operation, if the number of the execution results consistent with the expected results exceeds an expected threshold value, generating a webpage node, and otherwise, not generating the webpage node.
5. The method for unifying page operation behaviors based on H5 of claim 2, wherein the obtaining website information corresponding to a page and obtaining a web page corresponding to the page from the website information comprises:
acquiring a configuration file containing page login information, and extracting the page login information from the configuration file;
sending the page login information to a server of each website for login verification, obtaining a login verification result, and determining website information corresponding to the page according to the login verification result;
and acquiring a webpage naming rule corresponding to the website information, and determining a webpage corresponding to the webpage according to the naming rule.
6. The method for unifying page operation behaviors based on H5, according to claim 3, wherein the obtaining a page area operated by a user, extracting all sub-elements in the page area, comparing the extracted sub-elements with a state before user operation, and identifying a changed sub-element comprises:
the method comprises the steps of obtaining original pixel values of all points on a display screen, obtaining real-time pixel values of all points on the display screen when a user operates, comparing the original pixel values with the real-time pixel values, extracting change points with changed pixel values from the display screen, and connecting all the change points into a closed graph to form a page area operated by the user;
acquiring position information of all sub-elements corresponding to page content, and acquiring all sub-elements contained in the page area according to the position information;
extracting all sub-elements in the page area, acquiring initial parameters of all the sub-elements, and comparing the sub-element parameters operated by the user with the initial parameters to obtain changed sub-elements.
7. The method of claim 4, wherein the comparing each of the execution results with the expected result of the user operation respectively, and if the number of execution results consistent with the expected result exceeds an expected threshold, generating a web page node, otherwise not generating, comprises:
acquiring a display interface of a user expected result, and extracting a first page of display surface characteristic elements in the display interface of the user expected result;
acquiring a display page of an execution result, and extracting a second display page characteristic element in the execution result;
comparing the first display page characteristic element with the second display page characteristic element, if the first display page characteristic element is consistent with the second display page characteristic element, marking an execution result as a result meeting an expected result, otherwise, not marking the execution result;
and counting the number of the execution results which accord with the expected results, if the number of the execution results which accord with the expected results exceeds an expected threshold value, generating a webpage node, otherwise, not generating.
8. An H5-based page operation behavior unifying device is characterized by comprising the following modules:
the child element generation module is used for acquiring the configuration information of the page and generating child elements corresponding to the content of the page according to the configuration information;
the parent element determining module is used for acquiring a page area of user operation, extracting child elements related to the user operation from child elements corresponding to the page content according to the page area, and clustering all the child elements related to the user operation to obtain parent elements to be executed;
and the webpage node generating module is set to acquire an execution function corresponding to the parent element to be executed, the parent element to be executed is involved in the execution function for execution, the execution result is compared with an expected result of user operation, if the execution result is consistent with the expected result, a webpage node is generated, and otherwise, the webpage node is not generated.
9. A computer device comprising a memory and a processor, the memory having stored therein computer-readable instructions, which, when executed by the processor, cause the processor to carry out the steps of the H5-based page operation behavior unification method according to any of the claims 1 to 7.
10. A storage medium storing computer readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the H5-based page operation behavior unification method according to any of the claims 1 to 7.
CN201910747771.XA 2019-08-14 2019-08-14 Page operation behavior unifying method based on H5 and related equipment Pending CN110598148A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910747771.XA CN110598148A (en) 2019-08-14 2019-08-14 Page operation behavior unifying method based on H5 and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910747771.XA CN110598148A (en) 2019-08-14 2019-08-14 Page operation behavior unifying method based on H5 and related equipment

Publications (1)

Publication Number Publication Date
CN110598148A true CN110598148A (en) 2019-12-20

Family

ID=68854105

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910747771.XA Pending CN110598148A (en) 2019-08-14 2019-08-14 Page operation behavior unifying method based on H5 and related equipment

Country Status (1)

Country Link
CN (1) CN110598148A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112000563A (en) * 2020-08-26 2020-11-27 支付宝(杭州)信息技术有限公司 User behavior recording method, device and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183478A (en) * 2015-09-11 2015-12-23 中山大学 Webpage reestablishing method and device based on color transmission
CN108270629A (en) * 2016-12-29 2018-07-10 北京国双科技有限公司 Site visitor's behavior monitoring method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183478A (en) * 2015-09-11 2015-12-23 中山大学 Webpage reestablishing method and device based on color transmission
CN108270629A (en) * 2016-12-29 2018-07-10 北京国双科技有限公司 Site visitor's behavior monitoring method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112000563A (en) * 2020-08-26 2020-11-27 支付宝(杭州)信息技术有限公司 User behavior recording method, device and equipment

Similar Documents

Publication Publication Date Title
US11681900B2 (en) Providing field extraction recommendations for display
US10140368B2 (en) Method and apparatus for generating a recommendation page
US10997190B2 (en) Context-adaptive selection options in a modular visualization framework
US9697012B2 (en) Relation-based identification of automation objects
WO2018235252A1 (en) Analysis device, log analysis method, and recording medium
Huang et al. Topic detection from large scale of microblog stream with high utility pattern clustering
JP6514244B2 (en) Difference detection device and program
CN114417197A (en) Access record processing method and device and storage medium
CN107622008B (en) Traversal method and device for application page
CN105868256A (en) Method and system for processing user behavior data
CN108259638A (en) Personal group list intelligent sorting method, intelligent terminal and storage medium
US8903817B1 (en) Determining search relevance from user feedback
US10289613B2 (en) Element identifier generation
CN110598148A (en) Page operation behavior unifying method based on H5 and related equipment
CN116070049B (en) Method, device and equipment for backtracking page data and readable storage medium
WO2016033130A1 (en) Computing device classifier improvement through n-dimensional stratified input sampling
US11574429B1 (en) Automated generation of display layouts
US9824140B2 (en) Method of creating classification pattern, apparatus, and recording medium
Leithner et al. XIEv: dynamic analysis for crawling and modeling of web applications
Akpınar et al. Heuristic role detection of visual elements of web pages
Grechanik et al. Differencing graphical user interfaces
WO2016027173A1 (en) Method of and a system for monitoring web site consistency
CN104850494B (en) A kind of method and apparatus for memory system testing
CN111259050A (en) User operation track recording method and device, computer equipment and storage medium
Xing Secure Official Document Management and intelligent Information Retrieval System based on recommendation algorithm

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination