I am using puppeteer to click a button that does not have a generic id. I have attached a screenshot of the DOM with an arrow showing the button element. I have tried the following code to no avail:
    await page.evaluate(() => {
  let btns1 = [...document.querySelector("typeaheadDropdownWrapped-0").querySelectorAll("button")];
  btns1.forEach(function (btn) {
    if (btn.innerText == "@jubaitca")
              btn.click();
  });
  });
@jubaitca is a known text that can be used to identify the button. Can anyone help?
 
    