puppeteer if the object exists is determined

the await Element Page $ = const ( "ID #." ); 

 

IF (Element) the console.log ( 'object exists' ) 

the else the console.log ( 'object does not exist')

 

Guess you like

Origin www.cnblogs.com/aididiao/p/11872274.html