How to click on all elements at once

Hello, Developers

I wanted ask that is there any way that i can type and click all elements at once:

the problem is there is 2 fields one is for reporter type where i select “agency” and its working great for all elements that present on the page there is total 80+ but for buraeu field im unable to type and click for all elements its only working for 1 elements only and i wanted the same like i do with the “agency”

if you want website and account i can provide that

my code:

{
  "Name": "yo",
  "CreationDate": "2024-11-22",
  "Commands": [
    {
      "Command": "executeScript",
      "Target": "var selects = document.querySelectorAll('select.popup_reporter_type'); for (var i = 0; i < selects.length; i++) { var select = selects[i]; for (var j = 0; j < select.options.length; j++) { if (select.options[j].value === 'A') { select.selectedIndex = j; break; } } }",
      "Value": "",
      "Description": "Select 'Agency' for all select elements"
    },
    {
      "Command": "click",
      "Target": "xpath=//*[@id=\"articleContent\"]/div/div/div[4]/div[2]/span/span/span",
      "Value": "",
      "Description": "Click the dropdown field"
    },
    {
      "Command": "type",
      "Target": "xpath=//*[@id=\"articleContent\"]/div/div/div[4]/div[2]/span/span/span/ul/li/input",
      "Value": "buraeu",
      "Description": "Type 'buraeu' in the search field"
    },
    {
      "Command": "pause",
      "Target": "2000",
      "Value": "",
      "Description": "Wait for 2 seconds"
    },
    {
      "Command": "click",
      "Target": "xpath=//li[@class='select2-results__option select2-results__option--highlighted']",
      "Value": "",
      "Description": "Click the Buraeu option"
    }
  ]
}

Can you post the website here? Or maybe a screenshot?

if you need website and logins open your private message

Any Response Sir? im searching for the solution from last 1 week please help