Advanced Playwright Framework Design: Dynamic Page Waits and Popup Message Validation
Advanced Playwright frameworks require smart wait strategies that watch for both spinners and toast notifications. A custom click wrapper will validate the target button is ready and enabled before executing the click. Then it monitors for spinners and toast messages before finishing with a final waitForLoadState() check. This approach solves several core problems, including any expected elements that are disabled while spinners exist, or do not exist until the page is completely built. Additionally, it includes a toast notification detector that short-circuits immediately—preventing your next Expect statement from missing the message. It catches the popup before it disappears to validate its content. The result is more stable tests that handle real-world timing challenges while reducing maintenance and code bloat.
Speaker Biography:
Paul Grossman
Paul Grossman is known in the industry as the Dark Arts Wizard of AI Driven Test Automation. He has been a Test Automation Champion and Evangelist for 20+ years. He began as a Software Developer Engineer in Test with Mercury WinRunner before working with QTP/UFT for 16 years. He has experience in numerous test automation tool sets including Playwright in TypeScript, Selenium with Java and WebdriverIO in JavaScript.
In the past, he has automated the testing of medical equipment, insurance policies and entertainment kiosks. He is currently an independent consultant for a Trucking company automating the regression suite of tests with low code automation platforms. This also included providing mocks-ups of feature enhancements often requested by customers. Prior to that, he was a Project Manager for a freight tracking company based in Ann Arbor handling a WebdriverIO suite comprised of 1200+ automated test cases running every night.
In 2023, he co-authored "Enhanced Test Automation with WebdriverIO: Unlocking the Superpowers of Hybrid Testing Frameworks" with Larry Goddard. This was based on his years of experience to help new SDETs avoid real-world pitfalls and challenges. More books with Playwright and Cypress are in the planning stages.
Paul has been a conference speaker since 2004 including ZappleTech's monthly meetups and Joe Colantonio's Test Guild every Halloween. These always include a live demos, sharing tips from his experiences, with a little humor and the occasional magic trick. When Paul is not spending time automating test cases, he is producing demo videos on his a fledgling TikTok account as well as his YouTube and TwiX accounts with thousands of followers.
He just started a live multi-stream channel on LinkedIn, Facebook and Twitch.
Paul's current passion is learning more about Agentic AI and self-healing tests


