What is the difference between visible:false
and hidden:true
for page.waitForSelector
I read puppeteer page.waitForSelector documentation and PR 967
I am not able to understand their usecases as well as most importantly difference between them.
await page.waitForSelector(selector, {visible:false});
and
await page.waitForSelector(selector, {hidden:true});
Can someone please put some light on it and explain with real life scenarios?