--- title: "Selecting an Element from the Parent" slug: "selecting-an-element-from-the-parent" updated: 2023-01-06T15:49:07Z published: 2023-01-06T15:49:07Z canonical: "docs.catchpoint.com/selecting-an-element-from-the-parent" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.catchpoint.com/llms.txt > Use this file to discover all available pages before exploring further. # Selecting an Element from the Parent When selecting an element that may contain the changing IDs and class names, or the same values as other elements, it's best to specify properites of a parent element that are not likely to change or be duplicated. Consider a scenario where you need to select the check box for "San Diego Padres at San Francisco Giants Tickets (Fan Appreciation Day)" at different times of the month. However, the event can be moved up or down in the list depending on the number of ticket types available (inventory), and this would change how this check box can be identified/addressed.  ***The code for the last event would look something like this: ```