injetar jquery na página de marionetistas

Estou tentando injetar jquery na minha página de marionetistas, porque document.querySelector não é adequado para mim:

async function inject_jquery(page){
  await page.evaluate(() => {
    var jq = document.createElement("script")
    jq.src = "https://code.jquery.com/jquery-3.2.1.min.js"
    document.querySelector("head").appendChild(jq)
  })
  const watchDog = page.waitForFunction('window.jQuery !== undefined');
  await watchDog;
}

O resultado é que o tempo limite é excedido. Alguém tem uma solução?

questionAnswers(6)

yourAnswerToTheQuestion