@Pia123 for dynamizing the selector have a look here:
in case of you need more help we would need some details on the element selector / attributes. You can easy grab this with the help of: