Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in RPA by (12.7k points)

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

enter image description here

In UiPath, there is an 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.

The HTML tag for the radio button is below :

<INPUT type="radio" value="containing" name="selSearchField" ></Input>

please help with js code

1 Answer

0 votes
by (29.5k points)

Hi you can try the following code:

function check()
{
 if(document.readyState === "complete")
 {
    document.getElementsByName("selSearchField")[1].checked = true;
  }
}

Related questions

0 votes
1 answer
0 votes
1 answer
asked Jul 12, 2019 in RPA by Abhishek_31 (12.7k points)
0 votes
1 answer
0 votes
1 answer

Browse Categories

...