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
555 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,090 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,740 points

edited Mar 7 by Pratibha 97 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
• 16,440 points
244 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,090 points
305 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,090 points
254 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,090 points
899 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
163 views
0 votes
3 answers

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

1.  Excel Application Scope (Activity) : In ...READ MORE

answered Jun 9 in RPA by anonymous
• 140 points
2,089 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,090 points
390 views