if URL contains function in puppeteer
问题 So I am trying to have my code do something if the URL contains this: https://kith.com/throttle/queue? After the '?' there can be anything, so I only want it to identify 'https://kith.com/throttle/queue?' I am using puppeteer and want it to work like this: If the URL contains 'https://kith.com/throttle/queue?' then wait until it passes the queue (page.waitForNavigation({ waitUntil: 'networkidle2' }) would work for waiting until it's through the queue Else (If the URL doesn't contain that): do