Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

in puppeteer wait for page untile certain selector have certain value

 //According to docs page.waitForFunction will wait until the function
//passed to it (as a closure or a string) returns a truthy value.
await page.waitForFunction('document.querySelector("#ContentPlaceHolder1_trNoOfTxns #totaltxns") !== "-"');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #puppeteer #wait #page #untile #selector
ADD COMMENT
Topic
Name
6+5 =