Review these other Posts on dynamic pop-ups to help you move past it.
To assist you on getting the pathways for the button object(s), stop your recording and use the F12 key and then select, “Open DevTools”. Then use the first icon on the top area of Dev Tools to select your objects. You may have to create the pathway to the button you want, but if you show the HTML, we can assist.