FYI This is in a script being run by puppeteer. Note: Just updated the css tag and changed it to await bframe.$...
Can anyone tell me the right way to make this match a selector that has "recaptcha-verify-button" who's class list includes "rc-button-disabled" ?
await bframe.waitForSelector('button[id="recaptcha-verify-button"]');
The selector above works to identify the button but I can't figure out how to include the classlist filter. I believe this would normally do it...
el.classList.contains('rc-button-default-disabled')
This is the element I'm trying to identify which is added to the DOM after the initial load.
<div class="verify-button-holder">
<button class="rc-button-default goog-inline-block rc-button-default-disabled" title="" value="" id="recaptcha-verify-button" disabled="">Verify</button>
</div>
NOTE: I have tried this which works to get the element BUT it matches on ID and ANY css element, when it should match on the ID AND the css element.
await bframe.$('button#recaptcha-verify-button.rc-button-default-disabled');