Browser determination method, device and equipment and computer storage medium
By screening and scoring the response time and compatibility of browsers, the best browser is automatically selected, which solves the problem of low browser selection efficiency in the existing technology and achieves more efficient web page access and user experience.
Patent Information
- Application Number
- CN202311571829.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-22
- Publication Date
- 2024-10-22
AI Technical Summary
The existing technology cannot automatically select the best browser based on the compatibility parameters and response time of the URL, resulting in poor page response time and display effects. Users need to manually change browsers, which is time-consuming and inefficient.
By screening the response time of each browser, compatibility testing is performed, the score of the candidate browser is calculated, and the target browser is determined based on the score, including obtaining response time, statement support rate, CSS element loading success rate and element object operation success rate, using Weights are used to calculate scores.
It improves the adaptability and efficiency of the browser to access the target URL, improves the user experience, and ensures the best web browsing effect.
Smart Images

Figure CN118820569A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of browser technology, and in particular to a browser determination method, device, equipment and computer storage medium. Background Art
[0002] Since most websites have compatibility differences, specific browsers need to be selected for access with different compatibilities. Currently, the common solution for users is to manually change the browser to access the target website. This method consumes a lot of time and requires re-downloading of a new browser or even a non-mainstream browser. Although there are also solutions in the prior art that determine the target browser suitable for the website by judging the website, the browser that can be accessed can only guarantee normal page response, and its page response time and page display effect are not necessarily optimal, which may cause abnormal display of page elements, failure of some page response events, page confusion or white screen, etc. In addition, the prompted target browser needs to be manually downloaded by the user to access the corresponding website, that is, it is impossible to jump to the best browser according to the target website in one stop. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a browser determination method, device, equipment and computer storage medium, which automatically selects the best browser according to compatibility parameters and website response time, effectively improves the adaptability and access efficiency of the browser to access the target website, greatly improves the user experience, and enables users to obtain the best web browsing effect.
[0004] In order to achieve the above object, an embodiment of the present invention provides a browser determination method, comprising:
[0005] Screen each browser according to the response time of each browser accessing the target website to obtain candidate browsers;
[0006] Performing a compatibility test on the candidate browser, and calculating a score of the candidate browser according to a statement support rate, a Cascading Style Sheet (CSS) element loading success rate, an element object operation success rate, and the response time during the process of the candidate browser loading the target URL;
[0007] According to the scores of the candidate browsers, a target browser corresponding to the target website is determined from the candidate browsers.
[0008] As an improvement of the above solution, the method of screening each browser according to the response time of each browser accessing the target website to obtain candidate browsers specifically includes:
[0009] Obtaining the response time of each browser accessing the target website;
[0010] comparing the response time with a preset response time threshold;
[0011] If the response time exceeds the preset response time threshold, deleting the browser that exceeds the preset response time threshold;
[0012] If the response time does not exceed the preset response time threshold, the browsers whose response time does not exceed the preset response time threshold are retained to obtain the candidate browsers.
[0013] As an improvement of the above solution, the method further includes:
[0014] If the number of browsers that do not exceed the preset response time threshold is greater than the preset number threshold, browsers with the preset number threshold are selected from the browsers that do not exceed the preset response time threshold to obtain the candidate browsers.
[0015] As an improvement of the above solution, the method for obtaining the sentence support rate includes:
[0016] Obtaining the number of statements supporting the target URL during the process of the candidate browser loading the target URL, and the kernel used by the candidate browser;
[0017] The total number of statements of the target website is searched from the kernel, and the ratio of the number of statements supporting the target website to the total number of statements of the target website is calculated to obtain the statement support rate.
[0018] As an improvement of the above solution, the method for obtaining the CSS element loading success rate includes:
[0019] Obtain the number of successfully loaded CSS style elements and the total number of CSS style elements from the element loading list of the candidate browser;
[0020] The ratio of the number of successfully loaded CSS style elements to the total number of CSS style elements is calculated to obtain the CSS element loading success rate.
[0021] As an improvement of the above solution, the method for obtaining the success rate of the element object operation includes:
[0022] Generate an element object according to the ID of each rendered element, and execute an element event on the element object;
[0023] The ratio of the number of successfully executed element events to the total number of element events is calculated to obtain the element object operation success rate.
[0024] As an improvement of the above solution, the calculation formula of the score of the candidate browser is:
[0025]
[0026] In the formula, score represents the score of the candidate browser, r represents the statement support rate, s represents the CSS element loading success rate, p represents the element object operation success rate, t represents the response time, w1, w2, w3, and w4 all represent weights, among which w2>w4>w1>w3.
[0027] The embodiment of the present invention further provides a browser determination device, comprising:
[0028] The browser preliminary screening module is used to screen each browser according to the response time of each browser accessing the target website to obtain candidate browsers;
[0029] A browser scoring module is used to perform compatibility testing on the candidate browsers, and calculate the scores of the candidate browsers according to the statement support rate, CSS element loading success rate, element object operation success rate and the response time during the process of the candidate browsers loading the target URL;
[0030] The browser determination module is used to determine the target browser corresponding to the target website from the candidate browsers according to the scores of the candidate browsers.
[0031] An embodiment of the present invention further provides a terminal device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements any of the above-mentioned browser determination methods when executing the computer program.
[0032] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned browser determination methods.
[0033] Compared with the prior art, the beneficial effects of a browser determination method, device, equipment and computer storage medium provided by the embodiment of the present invention are: each browser is screened by the response time of each browser accessing the target website to obtain a candidate browser; the score of the candidate browser is calculated according to the statement support rate, CSS element loading success rate, element object operation success rate and the response time in the process of the candidate browser loading the target website; according to the score of the candidate browser, the target browser corresponding to the target website is determined from the candidate browser. The embodiment of the present invention automatically selects the best browser according to the compatibility parameters and the website response time, effectively improves the adaptability and access efficiency of the browser accessing the target website, greatly improves the user experience, and enables the user to obtain the best web browsing effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a flowchart of a preferred embodiment of a browser determination method provided by the present invention;
[0035] Figure 2 It is a structural schematic diagram of a preferred embodiment of a browser determination device provided by the present invention;
[0036] Figure 3 It is a structural schematic diagram of a preferred embodiment of a terminal device provided by the present invention. DETAILED DESCRIPTION
[0037] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0038] See also Figure 1 , Figure 1 1 is a flow chart of a preferred embodiment of a browser determination method provided by the present invention. The browser determination method comprises:
[0039] S1, screening each browser according to the response time of each browser accessing the target website to obtain candidate browsers;
[0040] S2, performing a compatibility test on the candidate browser, and calculating a score of the candidate browser according to a statement support rate, a Cascading Style Sheet (CSS) element loading success rate, an element object operation success rate, and the response time during the process of the candidate browser loading the target URL;
[0041] S3: Determine a target browser corresponding to the target website from the candidate browsers according to the scores of the candidate browsers.
[0042] Specifically, an embodiment of the present invention provides a browser determination method, which performs multi-faceted judgment on the target URL sent by the user terminal, and first performs an initial screening of each browser based on the response time of each browser accessing the target URL to obtain a candidate browser. It should be noted that the embodiment of the present invention uses the time from the browser executing the access to the target URL to the completion of loading the last HTML element of the web page as the response time of the web page. Then, a compatibility test is performed on each candidate browser, and the uploaded target URL is screened through multiple channels with all current candidate browsers. Each candidate browser opens a corresponding thread, and the compatibility parameters are obtained for each candidate browser. The score of each candidate browser is calculated based on the statement support rate, Cascading Style Sheet CSS element loading success rate, element object operation success rate and response time during the process of the candidate browser loading the target URL. Finally, the target browser corresponding to the target URL is determined from the candidate browsers based on the score of the candidate browser.
[0043] It should be noted that after determining the target browser, the embodiment of the present invention adds the target URL and the corresponding target browser to local storage so that the calculation result can be directly obtained during the second visit, which greatly improves the access speed and provides the user with the most optimized experience.
[0044] The embodiment of the present invention automatically selects the best browser according to the compatibility parameters and the website response time, effectively improving the adaptability and access efficiency of the browser in accessing the target website, greatly improving the user experience, and enabling the user to obtain the best web browsing effect.
[0045] In another preferred embodiment, the step S1, screening each browser according to the response time of each browser accessing the target website to obtain candidate browsers, specifically includes:
[0046] S101, obtaining the response time of each browser accessing the target website;
[0047] S102, comparing the response time with a preset response time threshold;
[0048] S103, if the response time exceeds the preset response time threshold, deleting the browser that exceeds the preset response time threshold;
[0049] S104: If the response time does not exceed the preset response time threshold, retain the browsers that do not exceed the preset response time threshold to obtain the candidate browsers.
[0050] Specifically, the embodiment of the present invention obtains the response time t from each browser executing access to the target website to the completion of loading the last HTML element of the webpage, and compares the response time t with a preset response time threshold. If the response time exceeds the preset response time threshold, the browser exceeding the preset response time threshold is deleted and does not participate in the competition for the best browser. If the response time does not exceed the preset response time threshold, the browser not exceeding the preset response time threshold is retained to obtain a candidate browser.
[0051] It should be noted that the preset response time threshold can be set according to actual conditions, and is preferably 20 seconds in the embodiment of the present invention. If t>20s, the corresponding browser is deleted. If t≤20s, the corresponding browser is retained.
[0052] In another preferred embodiment, the method further comprises:
[0053] If the number of browsers that do not exceed the preset response time threshold is greater than the preset number threshold, browsers with the preset number threshold are selected from the browsers that do not exceed the preset response time threshold to obtain the candidate browsers.
[0054] Specifically, the embodiment of the present invention sorts the browsers that do not exceed the preset response time threshold according to the response time from fast to slow. If the number of browsers that do not exceed the preset response time threshold is greater than the preset number threshold, the browsers with the preset number threshold ranking higher than the browsers that do not exceed the preset response time threshold are selected to obtain candidate browsers. It should be noted that if the number of browsers that do not exceed the preset response time threshold is not greater than the preset number threshold, all browsers that do not exceed the preset response time threshold are used as candidate browsers. If the response time of all browsers exceeds the preset response time threshold, there is no limit on the response time because it is necessary to ensure that users can see their target website.
[0055] It should be noted that the preset number threshold can be set according to actual conditions, and in the embodiment of the present invention, it is preferably 10. Exemplarily, if the number of browsers that do not exceed the preset response time threshold is greater than 10, the first 10 browsers are selected from the browsers that do not exceed the preset response time threshold to obtain candidate browsers.
[0056] In another preferred embodiment, the method for obtaining the sentence support rate includes:
[0057] Obtaining the number of statements supporting the target URL during the process of the candidate browser loading the target URL, and the kernel used by the candidate browser;
[0058] The total number of statements of the target website is searched from the kernel, and the ratio of the number of statements supporting the target website to the total number of statements of the target website is calculated to obtain the statement support rate.
[0059] Specifically, the embodiment of the present invention obtains the number of statements supporting the target URL during the process of the candidate browser loading the target URL, as well as the kernel used by the candidate browser. The total number of statements of the target URL is found from the kernel, and the ratio of the number of statements supporting the target URL to the total number of statements of the target URL is calculated to obtain the statement support rate r. It should be noted that since different HTML statements have different compatibilities with the kernels of different browsers, based on this point, the compatibility of the web page can be initially evaluated. For each called syntax, the syntax database corresponding to each kernel is searched to obtain the ratio of the number of supported statements to the total number of statements as the statement support rate r.
[0060] In another preferred embodiment, the method for obtaining the CSS element loading success rate includes:
[0061] Obtain the number of successfully loaded CSS style elements and the total number of CSS style elements from the element loading list of the candidate browser;
[0062] The ratio of the number of successfully loaded CSS style elements to the total number of CSS style elements is calculated to obtain the CSS element loading success rate.
[0063] Specifically, the embodiment of the present invention obtains the CSS style list of each page element from the element loading list of the candidate browser. The browser's loading list will mark whether the style element is loaded successfully (such as element.style corresponding to each html element under Elements in Google Chrome Developer Tools). The number of successfully loaded CSS style elements and the total number of CSS style elements are obtained from the element loading list. The ratio of the number of successfully loaded CSS style elements to the total number of CSS style elements is calculated to obtain the CSS element loading success rate s.
[0064] In another preferred embodiment, the method for obtaining the element object operation success rate includes:
[0065] Generate an element object according to the ID of each rendered element, and execute an element event on the element object;
[0066] The ratio of the number of successfully executed element events to the total number of element events is calculated to obtain the element object operation success rate.
[0067] Specifically, the embodiment of the present invention searches for each rendered element, obtains the element ID, generates an element object according to the ID of each rendered element, and executes element events for each element object, such as click (page element click event) and submit (page form submission event). Initialize the count Count to 0, insert a counting statement at the bottom of each response event of the element, and each successful execution of the element event will increase the count by 1. Calculate the ratio of the number of successfully executed element events to the total number of element events, that is, count Count / total number of element events, and obtain the element object operation success rate p.
[0068] In another preferred embodiment, the calculation formula of the score of the candidate browser is:
[0069]
[0070] In the formula, score represents the score of the candidate browser, r represents the statement support rate, s represents the CSS element loading success rate, p represents the element object operation success rate, t represents the response time, w1, w2, w3, and w4 all represent weights, among which w2>w4>w1>w3.
[0071] Specifically, the embodiment of the present invention calculates the score of the candidate browser based on the statement support rate r, CSS cascading style sheet element loading success rate s, element object operation success rate p and response time t during the process of the candidate browser loading the target website.
[0072] It should be noted that because the approximate time for each browser to load a page is between 300 milliseconds and 500 milliseconds (100 milliseconds to 200 milliseconds faster), within a reasonable time range, users' tolerance for loading time is higher than their tolerance for browser compatibility. In order to avoid a large difference due to differences in loading time, a time constant is added after the time parameter t, and its weight is used as w1. The default w1 value is 0.2. In browser compatibility testing, the most important thing is the support of statements and the success rate of element event responses. If html statements are not supported, it will directly lead to page confusion or the corresponding component will "disappear" from the page. Its weight is hereinafter referred to as w2. Failure to load CSS elements will cause the layout of a component to be out of control. In some cases, it may cause abnormal displacement of components or abnormal style display. Its weight is hereinafter referred to as w3. The expected operation of users and pages is reflected in the operation of element objects, and its success or failure directly reflects the compatibility quality of the page. Its weight is hereinafter referred to as w4.
[0073] In summary, the four weights are ranked in importance as w2>w4>w1>w3, so w1=0.2, w2=0.4, w3=0.1, and w4=0.3 are preferred. In addition, the four weights can also be customized by the user according to their needs.
[0074] The embodiment of the present invention automatically selects the best browser according to the compatibility parameters and the website response time, effectively improving the adaptability and access efficiency of the browser in accessing the target website, greatly improving the user experience, and enabling the user to obtain the best web browsing effect.
[0075] Correspondingly, the present invention also provides a browser determination device, which can implement all the processes of the browser determination method in the above embodiment.
[0076] See also Figure 2 , Figure 2 1 is a schematic diagram of a preferred embodiment of a browser determination device provided by the present invention. The browser determination device comprises:
[0077] The browser preliminary screening module 201 is used to screen each browser according to the response time of each browser accessing the target website to obtain candidate browsers;
[0078] The browser scoring module 202 is used to perform compatibility testing on the candidate browsers and calculate the scores of the candidate browsers according to the statement support rate, CSS element loading success rate, element object operation success rate and the response time during the process of the candidate browsers loading the target URL;
[0079] The browser determination module 203 is used to determine the target browser corresponding to the target website from the candidate browsers according to the scores of the candidate browsers.
[0080] Preferably, the browser initial screening module 201 specifically includes:
[0081] The acquisition unit 211 is used to acquire the response time of each browser accessing the target website;
[0082] A comparison unit 222, configured to compare the response time with a preset response time threshold;
[0083] A deleting unit 232, configured to delete the browser that exceeds the preset response time threshold if the response time exceeds the preset response time threshold;
[0084] The retaining unit 242 is configured to retain the browsers whose response time does not exceed the preset response time threshold if the response time does not exceed the preset response time threshold, and obtain the candidate browsers.
[0085] Preferably, the device is also used for:
[0086] If the number of browsers that do not exceed the preset response time threshold is greater than the preset number threshold, browsers with the preset number threshold are selected from the browsers that do not exceed the preset response time threshold to obtain the candidate browsers.
[0087] Preferably, the method for obtaining the sentence support rate includes:
[0088] Obtaining the number of statements supporting the target URL during the process of the candidate browser loading the target URL, and the kernel used by the candidate browser;
[0089] The total number of statements of the target website is searched from the kernel, and the ratio of the number of statements supporting the target website to the total number of statements of the target website is calculated to obtain the statement support rate.
[0090] Preferably, the method for obtaining the CSS element loading success rate includes:
[0091] Obtain the number of successfully loaded CSS style elements and the total number of CSS style elements from the element loading list of the candidate browser;
[0092] The ratio of the number of successfully loaded CSS style elements to the total number of CSS style elements is calculated to obtain the CSS element loading success rate.
[0093] Preferably, the method for obtaining the element object operation success rate includes:
[0094] Generate an element object according to the ID of each rendered element, and execute an element event on the element object;
[0095] The ratio of the number of successfully executed element events to the total number of element events is calculated to obtain the element object operation success rate.
[0096] Preferably, the calculation formula for the score of the candidate browser is:
[0097]
[0098] In the formula, score represents the score of the candidate browser, r represents the statement support rate, s represents the CSS element loading success rate, p represents the element object operation success rate, t represents the response time, w1, w2, w3, and w4 all represent weights, among which w2>w4>w1>w3.
[0099] In specific implementation, the working principle, control flow and technical effect achieved by the browser determination device provided in the embodiment of the present invention are the same as those of the browser determination method in the above embodiment, and will not be described in detail here.
[0100] See also Figure 3 , Figure 3 3 is a schematic diagram of a preferred embodiment of a terminal device provided by the present invention. The terminal device includes a processor 301, a memory 302, and a computer program stored in the memory 302 and configured to be executed by the processor 301. When the processor 301 executes the computer program, the browser determination method described in any of the above embodiments is implemented.
[0101] Preferably, the computer program can be divided into one or more modules / units (such as computer program 1, computer program 2, ...), and the one or more modules / units are stored in the memory 302 and executed by the processor 301 to complete the present invention. The one or more modules / units can be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device.
[0102] The processor 301 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor, or the processor 301 can be any conventional processor. The processor 301 is the control center of the terminal device, and various parts of the terminal device are connected using various interfaces and lines.
[0103] The memory 302 mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function, etc., and the data storage area can store related data, etc. In addition, the memory 302 can be a high-speed random access memory, or a non-volatile memory, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, and a flash card (Flash Card), etc., or the memory 302 can also be other volatile solid-state storage devices.
[0104] It should be noted that the above terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will understand that Figure 3 The structural diagram is only an example of the above-mentioned terminal device and does not constitute a limitation of the above-mentioned terminal device. It may include more or less components than shown in the figure, or combine certain components, or different components.
[0105] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the browser determination method described in any of the above embodiments.
[0106] The embodiment of the present invention provides a browser determination method, device, equipment and computer storage medium, wherein each browser is screened by the response time of each browser accessing a target website to obtain a candidate browser; the score of the candidate browser is calculated according to the statement support rate, CSS cascading style sheet element loading success rate, element object operation success rate and the response time during the process of the candidate browser loading the target website; and the target browser corresponding to the target website is determined from the candidate browser according to the score of the candidate browser. The embodiment of the present invention automatically selects the best browser according to the compatibility parameter and the website response time, effectively improves the adaptability and access efficiency of the browser accessing the target website, greatly improves the user experience, and enables the user to obtain the best web browsing effect.
[0107] It should be noted that the system embodiment described above is merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the system embodiment provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.
[0108] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A browser determination method, It is characterized in that include: Screen each browser according to the response time of each browser accessing the target website to obtain candidate browsers; Performing a compatibility test on the candidate browser, and calculating a score of the candidate browser according to a statement support rate, a Cascading Style Sheet (CSS) element loading success rate, an element object operation success rate, and the response time during the process of the candidate browser loading the target URL; According to the scores of the candidate browsers, a target browser corresponding to the target website is determined from the candidate browsers.
2. The browser determination method according to claim 1, It is characterized in that The method of screening each browser according to the response time of each browser accessing the target website to obtain candidate browsers specifically includes: Obtaining the response time of each browser accessing the target website; comparing the response time with a preset response time threshold; If the response time exceeds the preset response time threshold, deleting the browser that exceeds the preset response time threshold; If the response time does not exceed the preset response time threshold, the browsers whose response time does not exceed the preset response time threshold are retained to obtain the candidate browsers.
3. The browser determination method according to claim 2, It is characterized in that The method further comprises: If the number of browsers that do not exceed the preset response time threshold is greater than the preset number threshold, browsers with the preset number threshold are selected from the browsers that do not exceed the preset response time threshold to obtain the candidate browsers.
4. The browser determination method according to claim 1, It is characterized in that The method for obtaining the sentence support rate includes: Obtaining the number of statements supporting the target URL during the process of the candidate browser loading the target URL, and the kernel used by the candidate browser; The total number of statements of the target website is searched from the kernel, and the ratio of the number of statements supporting the target website to the total number of statements of the target website is calculated to obtain the statement support rate.
5. The browser determination method according to claim 4, It is characterized in that The method for obtaining the CSS element loading success rate includes: Obtain the number of successfully loaded CSS style elements and the total number of CSS style elements from the element loading list of the candidate browser; The ratio of the number of successfully loaded CSS style elements to the total number of CSS style elements is calculated to obtain the CSS element loading success rate.
6. The browser determination method according to claim 5, It is characterized in that The method for obtaining the element object operation success rate includes: Generate an element object according to the ID of each rendered element, and execute an element event on the element object; The ratio of the number of successfully executed element events to the total number of element events is calculated to obtain the element object operation success rate.
7. The browser determination method according to claim 6, It is characterized in that The calculation formula of the score of the candidate browser is: In the formula, score represents the score of the candidate browser, r represents the statement support rate, s represents the CSS element loading success rate, p represents the element object operation success rate, t represents the response time, w1, w2, w3, and w4 all represent weights, among which w2>w4>w1>w3.
8. A browser determination device, It is characterized in that include: The browser preliminary screening module is used to screen each browser according to the response time of each browser accessing the target website to obtain candidate browsers; A browser scoring module is used to perform compatibility testing on the candidate browsers, and calculate the scores of the candidate browsers according to the statement support rate, CSS element loading success rate, element object operation success rate and the response time during the process of the candidate browsers loading the target URL; The browser determination module is used to determine the target browser corresponding to the target website from the candidate browsers according to the scores of the candidate browsers.
9. A terminal device, It is characterized in that The invention comprises a processor and a memory, wherein a computer program is stored in the memory and the computer program is configured to be executed by the processor, and when the processor executes the computer program, the browser determination method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein when the device where the computer-readable storage medium is located executes the computer program, the browser determination method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Testing method and system for compatibility of multiple browsers
CN104636251A
Browser compatibility testing method, device and system and electronic equipment
CN107729249A
Browser compatibility test method, device and system and readable storage medium
CN110413501A
Browser compatibility detection method and related equipment
CN114579461A
Browser kernel determination method and device, computer equipment and storage medium
CN115470426A
