Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to check if selector exists or is present puppeteer

if (await page.$(selector) !== null) console.log('found');
else console.log('not found');
Source by github.com #
 
PREVIOUS NEXT
Tagged: #check #selector #exists #present #puppeteer
ADD COMMENT
Topic
Name
3+1 =