Element ID changes from page to page... Help!

Hello, I am very new to this with no coding experience but I am trying my best. I figured out how to open a accordian element but now I found out that the ID for the accordian element is different on every page...

here are two examples:
#accordion::r9:
#accordion::R19:

I chose this element from the page I was working on only to see that it doesn't work on other product pages: div#collapsible:accordion::r9::item:features-item

Is there a way to modify the selector code above to account for any variation of the ID for all pages?

Hi, you can inspect the HTML for a more universal element attribute, like [data-testid="accordion-item-features"]

1 Like

Thank you so much. Again, first time looking at code really... all I see is this:

And not seeing anything like what you suggested...

Just found it in the element code. But what do I do with it inside of the app and creating the selector with it?

I figured it out! Thank you so much!!!!!!