Proceedings of the International scientific and practical conference ― Cambridge Science and Education Conference‖ (February 23-25, 2026) / Publisher website: www.naukainfo.com. – Cambridge, United Kingdom, 2026. - 289 p.

111 Weighting coefficients are used to determine the more important components, which affects the final length of the selector. The coefficients allow components to be prioritised for the construction of the selector. The range {0;1} was chosen for the weight coefficients, where the closer the number is to 0, the higher the priority of the component. An example of the distribution of weight coefficients (Table 1). Table 1 . Weighting coefficients for selector components Tag Coefficients Id 0.2 Class 0.5 Data-testid 0.4 nth-child 0.8 Embeddedness (>) 0.5 Another advantage of this method is that it takes into account the importance of selector components and all complex components. Conclusions An analysis of known methods and models for determining selector length has been conducted. The shortcomings of individual methods and models for determining selector length are described: by number of characters, by number of components, as well as the advantages of the method using weight coefficients. Experimental studies were conducted and an example of the distribution of weight coefficients according to the priority of components is given. The metric considered can be the basis for the automatic selection of selectors or as an optimisation metric when generating selectors using artificial intelligence methods and tools. REFERENCES: 1. Analysis of the subject area of automated testing of WEB resources in the context of process optimisation / O.S. Morozov, A.A. Yarovyi, A.V.

RkJQdWJsaXNoZXIy MTAxMzIwNA==