79178604

Date: 2024-11-11 17:37:10
Score: 1
Natty:
Report link

I ended up needing to navigate further down the DOM to a parent element that didn't have so much stuff in it. Then, I waited for a button to populate within that specific parent div:

                await myPageSection.waitForSelector('button', { timeout: 15000 }).catch(() => {
                console.log('No buttons found within pageSections[3] after waiting.');
            });

And finally, I ran through all the buttons to find the one I needed. I think classes and innerText were dynamically changing, which is part of the reason why I couldn't target it:

const allButtons = await myPageSection.$$('button')
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: MrBuchmas