await page.waitForSelector('#msg5',{waitUntil: '#msg5', timeout: 0});
is my code
I want my selector to wait for either #msg5 or #msg1, What is the easiest method to achieve that?
The below is what I tried and it did not work
await page.waitForSelector(/'#msg5'|'#msg1'/,{waitUntil: /'#msg5'|'#msg1'/, timeout: 0});