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") !== "-"');