Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Browser element measurement method and device, electronic equipment and storage medium

A measurement method and browser technology, applied in program control devices, instruments, software testing/debugging, etc., can solve problems such as tools cannot be shared with each other, accurate measurement cannot be achieved, and application scenarios are limited.

Pending Publication Date: 2020-09-18
PINGAN PUHUI ENTERPRISE MANAGEMENT CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] (1) Unable to achieve accurate measurement
[0004] The measurement of browser developer tools is based on the measurement of DOM elements, but if the length to be measured is from inside DOM to outside DOM, it cannot support
[0005] (2) Limited application scenarios
[0006] In the measurement of the front-end page, there are various types of users. If there are no elements switched to html tags in the browser (such as pictures, pdf, etc.), it cannot be measured
[0007] In addition, each browser has its own custom development assistance, some browsers may not have development or debugging functions, and the tools of each browser cannot be shared with each other

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Browser element measurement method and device, electronic equipment and storage medium
  • Browser element measurement method and device, electronic equipment and storage medium
  • Browser element measurement method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0095] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0096] Such as figure 1 Shown is a flow chart of a preferred embodiment of the browser element measurement method of the present invention. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.

[0097] The browser element measurement method is applied to one or more electronic devices, and the electronic device is a device that can automatically perform numerical calculation and / or information processing according to preset or stored instructions, and its hardware includes but It is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital pro...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the technical field of artificial intelligence and development, and provides a browser element measurement method and device, electronic equipment and a storage medium. The method comprises the following steps: determining a to-be-tested browser from an element measurement instruction; accessing the to-be-tested browser based on an H5 plug-in, and when the to-be-tested browser meets a measurement condition, reading page parameters of the to-be-tested browser by utilizing the document object so as to determine an initial position of a cursor; obtaining a UI interface ofthe browser to be tested, and initializing the UI interface; after initialization is completed, when it is detected that the cursor is away from the initial position, capturing movement information of the cursor based on WebView; determining a starting point and an ending point which need to be measured according to the movement information; and calculating the distance between the starting pointand the terminal point. The invention also relates to a blockchain technology, and the calculated distance can be stored in the blockchain. By utilizing the method and the device, the browser elements can be automatically and accurately measured, screen display can be used as a measurement basis, and meanwhile, the compatibility problem is solved.

Description

technical field [0001] The invention relates to the field of artificial intelligence and development technology, in particular to a browser element measurement method, device, electronic equipment and storage medium. Background technique [0002] At present, since there is no browser-specific measurement tool in the industry, the size of browser elements is usually obtained based on browser developer tools, but the above method has the following disadvantages: [0003] (1) Accurate measurement cannot be achieved. [0004] The measurement of browser developer tools is based on the measurement of DOM elements, but if the length to be measured is from inside the DOM to outside the DOM, it cannot be supported. [0005] (2) The application scenarios are limited. [0006] In the measurement of the front-end page, there are various types of users. If there are no elements switched to html tags in the browser (such as pictures, pdf, etc.), it cannot be measured. [0007] In addit...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/958G06F9/451G06F11/36
CPCG06F16/958G06F9/451G06F11/3604
Inventor 高林龙
Owner PINGAN PUHUI ENTERPRISE MANAGEMENT CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products