0 votes
1 view
in RPA by (11.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 (27.7k points)

Hi you can try the following code:

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

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...