Can we use a similar approach to recaptcha with a selector instead of looking for the parent element?