chore: simplify polls and evaluates in dom.ts (#9941)
chore: simplify polls and evaluates in dom.ts (#9941)


microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright