Rotating user interface element detection
AssigneeBrowserStack Limited
InventorsSuyash Yogeshwar Sonawane, Jimesh Mayank Chokshi
Life of this patent
Estimating the term…
Abstract
An accessibility test engine can receive the document object model of a webpage and analyze the webpage for compliance with a set of accessibility rules. The test engine analyzes the compliance of a webpage element with accessibility rules in part by identifying the type of element. In the case of a carousel element a multi-prong testing approach can be used to assign a plurality of confidence scores to a webpage element, each confidence score, based on a likely characteristic of a candidate carousel element. A total combined confidence score exceeding a selected threshold can indicate the webpage element is a carousel. Upon identification, the test engine can apply carousel accessibility rules to the element.
Claims18
A method comprising:
- receiving a webpage, and a document object model (DOM) associated with the webpage, the webpage comprising a plurality of webpage elements and the DOM comprising references to the plurality of webpage elements;
- analyzing a reference in the DOM for one or more characteristics indicative of a rotating user interface component;
- for each characteristic, generating a score, based on a result of analyzing the characteristic;
- generating a plurality of scores, based on results of analyzing the characteristics;
- combining the plurality of the scores;
- when the combined score exceeds a selected threshold, labeling the analyzed reference in the DOM, and the element in the webpage, corresponding to the analyzed reference, as a rotating user interface component;
- and
- applying penalties and bonuses to the combined score, wherein the penalties and bonuses are in part, based on one or more of the context of a DOM container reference element and the size of the DOM container reference element when generated as a user interface element.
A non-transitory computer storage medium that stores executable program instructions that, when executed by one or more computing devices, configure the one or more computing devices to perform operations comprising:
- receiving a webpage, and a document object model (DOM) associated with the webpage, the webpage comprising a plurality of webpage elements and the DOM comprising references to the plurality of webpage elements;
- analyzing a reference in the DOM for one or more characteristics indicative of a rotating user interface component;
- for each characteristic, generating a score, based on a result of analyzing the characteristic;
- generating a plurality of scores, based on results of analyzing the characteristics;
- combining the plurality of the scores;
- when the combined score exceeds a selected threshold, labeling the analyzed reference in the DOM, and the element in the webpage, corresponding to the analyzed reference, as a rotating user interface component,
- applying penalties and bonuses to the combined score, wherein the penalties and bonuses are in part, based on one or more of the context of a DOM container reference element and the size of the DOM container reference element when generated as a user interface element.
Dependencies are inferred from the claim text.