Question

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
  • 13 views

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 6
Badge +9

@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: https://apeople.automationanywhere.com/s/topic/0TO2t000000TNX6GAO/did-you-know

 

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

 

KB for Recorder:

 

11.x : https://docs.automationanywhere.com/bundle/enterprise-v11.3/page/enterprise/topics/aae-client/bot-creator/getting-started-with-aa/recording-simple-tasks.html/p>

 

A360:

 

https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/aae-client/bot-creator/using-the-workbench/recording-task-with-aisense.html/p>

 

https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/aae-client/bot-creator/using-the-workbench/cloud-capturing-recording.html/p>

 

https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/aae-client/bot-creator/using-the-workbench/cloud-editing-task.html/p>

 

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

 

How to create a support case :

https://apeople.automationanywhere.com/s/article/How-to-create-a-support-case-in-service-cloud

 

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

 

Reply