'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



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source