Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

113
Visualizações
Puppeteer can't find selector inside table

I'm having an issue when trying to fill a search form that is embedded within a table. The selector is there, I can see it in the HTML.

I have tried using waitForSelector, but still get the error of 'No node found for selector: #gs_invoices.InvoiceNumber', or it will just time out because it cannot find it.

    await page.type("#Email", "-")
    await page.type("#Password", "-")
    await page.click("#btnSubmit")
    await page.click('[id^="InvoicesMenuLink"]')
    await page.click("div.show > a:nth-child(1)")

    await page.waitForSelector("#gs_invoices\.InvoiceNumber")
    await page.type("#gs_invoices\.InvoiceNumber", "123")

The only other thing I can think that might be preventing it from finding the selector is that it is nested inside of a table. I have not worked with a table before using Puppeteer. If there is something I am missing or something more that I need to do, please inform me.

Thank you

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda