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

User interface UI element explicit waiting method and device

A user interface and element technology, applied in the waiting field, can solve the problems of waiting for repeated coding, static element judgment timeout failure and other problems, and achieve the effect of reducing repeated coding, improving the test pass rate and improving the test efficiency.

Pending Publication Date: 2021-12-14
MICRO DREAM TECHTRONIC NETWORK TECH CHINACO
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present invention provides a user interface UI element explicit waiting method and device, which solves the problem that during the test process, the judgment of static elements is prone to timeout failure due to the interference of the test environment and the problem of repeated coding for the explicit waiting in each test

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
  • User interface UI element explicit waiting method and device
  • User interface UI element explicit waiting method and device
  • User interface UI element explicit waiting method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0049] Before describing the embodiments of the present invention, the following nouns are explained:

[0050]UI: User Interface, that is, user interface, refers to the overall design of human-computer interaction, operation logic, and beautiful interface of the software. This refers specifically to the user interface of the software system.

[0051] UI automation testing: replace the manual user interface with code, so as to find the loopholes and problems o...

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 embodiment of the invention provides a user interface UI element explicit waiting method and device. The method comprises the steps of obtaining positioning information of a first element on a user interface; circularly executing a specific operation and detecting the state of the first element according to the positioning information of the first element until the state of the first element is updated to a specified target state or the total execution time of the cycle is greater than or equal to a specified total timeout time, and exiting the cycle.

Description

technical field [0001] The invention relates to the field of user interface UI automation testing, in particular to a user interface UI element explicit waiting method and device. Background technique [0002] The combination of Selenium's WebDriverWait class and expected_conditions module can realize the explicit waiting of static element judgment, among which the WebDriverWait module realizes explicit waiting, and expected_condition realizes a series of static element judgments. The static element judgment used in the existing implementation is just to wait for a period of time to judge whether the page element satisfies the judgment method. If the event that triggers the page element to meet the judgment condition is not executed or the execution is unsuccessful due to some reason (such as an abnormal network fall), This explicit wait will fail, throwing a timeout exception. [0003] In the process of realizing the present invention, the applicant found that at least the...

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): G06F11/36
CPCG06F11/3684G06F11/3672
Inventor 刘丹丹梁海燕梁田
Owner MICRO DREAM TECHTRONIC NETWORK TECH CHINACO
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