1. A method comprising: receiving first user input indicative of a root location of an element of a visual web application framework component having a hypertext markup language (HTML) tree structure, wherein the visual web application framework component comprises a plurality of visual user interface (UI) elements, and wherein the HTML tree structure comprises a respective root location for each element of the plurality of visual UI elements of the web application framework component; receiving second user input indicative of one or more respective paths from the root location of the element of the visual web application framework component to one or more sub-elements of the element of the visual web application framework component; generating, by a processing device, a component model for the element of the visual web application framework component comprising data indicating the root location of the element of the visual web application framework component and data indicating the one or more respective paths from the root location of the element to the one or more sub-elements; generating a page model for a web page comprising the element of the visual web application framework component at run-time of the element of the visual web application framework component of the web page, wherein the page model is generated using annotations; and providing the page model and the component model to a test tool to enable the test tool to test the web page and the visual web application component.