Injecting JavaScript for selecting the option button using UiPath Inject JS Activity

0 votes

I am trying to automate one of the business process using UiPath. One of the requirement was to select the option button "Containing" as shown below.

enter image description here

In UiPath, there is a activity to InJect JS on a webpage and i would like to use this activity. For this to work, i need to write a JavaScript to select the option.

HTML tag for the radio button is below :

<INPUT type="radio" value="containing" name="selSearchField" ></Input>
May 24, 2018 in RPA by Atul
• 5,530 points
678 views

1 answer to this question.

0 votes

This worked 

function check() 
{
 if(document.readyState === "complete") 
 {
    document.getElementsByName("selSearchField")[1].checked = true;
  }
}
answered May 24, 2018 by wrecker
• 3,110 points

Related Questions In RPA

0 votes
1 answer

How to get the IP address, subnet mask and default gateway for all adapters using UiPath?

Hi Rakshit, in order to get the ...READ MORE

answered Mar 7 in RPA by Pratibha
• 2,780 points

edited Mar 7 by Pratibha 152 views
0 votes
1 answer
0 votes
1 answer

What are the general requirements for installing UiPath?

Hey @Avinash, if you have a Macbook ...READ MORE

answered Mar 8 in RPA by Abha
• 22,870 points
965 views
0 votes
1 answer

Robot Manager in UiPath

the robot.exe file is located in: C:\Users\USER_ACCOUNT\AppData\Local\UiPath\app-17.1.6523\Ui-Robot.exe Hope it ...READ MORE

answered Apr 17, 2018 in RPA by wrecker
• 3,110 points
388 views
0 votes
1 answer

Automation in Uipath

you can use the Database package for connecting  ...READ MORE

answered Apr 17, 2018 in RPA by wrecker
• 3,110 points
316 views
0 votes
1 answer

UiPath vs Workfusion

in WorkFusion, you can create a script ...READ MORE

answered Apr 17, 2018 in RPA by wrecker
• 3,110 points
1,013 views
0 votes
3 answers

Any open source tools for RPA ?

Yes, here is the Free RPA tool ...READ MORE

answered Oct 24, 2018 in RPA by Karthiksiddhu
• 240 points
221 views
0 votes
4 answers

How to find the sum of 2 columns of an excel and display it in a 3rd column using UIPATH?

These are the steps to add two ...READ MORE

answered Aug 2 in RPA by Shivi Singhal
2,994 views
0 votes
1 answer

“Read CSV” activity missing in UiPath Studio

Go to your Manage Packages Package and Install the Ui ...READ MORE

answered Apr 23, 2018 in RPA by wrecker
• 3,110 points
438 views