Hello Team, Getting an issue with the JScript for a dropdown menu. I'm not getting the selected value from the dropdown instead getting all the data of the dropdown (please see the details). Please suggest me what mistake I'm making

  • 15 March 2022
  • 1 reply

Hello Commuity,

I'm using the web automation package of AA for my project where I use JScipt for extracting texts from a web portal

I'm facing a difficulty in getting the JScript for the text selected in the dropdown. The JScript that I'm getting from the portal is "document.querySelector("#ContentPlaceHolder1_ddlmandoobs")" but it gives the value for all the data in the dropdown and not the only value that is selected from the dropdown.

Can anyone help me in modifying the mentioned JScript to only get the selected value from the drop down.image

1 reply

Userlevel 7
Badge +10

@Priya Ranjan Rout​ :



Welcome to A-People Community, a one-stop solution for all your RPA queries. Start your RPA journey with our introductory learning trail, Getting Started with RPA, which includes a collection of introductory RPA courses.


To explore more FREE RPA courses & quick tips, please click here:


Please try the recorder and see if that helps your requirement.


KB for Recorder:


11.x :>




if you are still facing an issue then please create a support case


How to create a support case :


if you don't have access to the above link, email the AA Support team "" to get access.