I have just started using the Puppeteer API and despite how deep I've looked, I can't find a solid solution to this error I'm having. Basically, I'm trying to focus an element that's a drop-down menu and select a value from it. Unfortunately, every solution I've tried, whether I got it from here or from another source, has not worked.
Here is a list of things I've tried:
How to select an option from dropdown select
Getting value from dropdown menu?
How can I select a dropdown option
Any help would be appreciated in this matter, it has been driving me up the wall and is the only thing holding me back from finishing my project.
EDIT: Here is my code so far, if it helps.
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch({headless: false});
const page = await browser.newPage();
await page.goto('[REDACTED]');
//this is where the drop-down selection would take place
})();