0 votes
1 view
in RPA by (12.8k 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.8k 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.8k points)
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...