Click Checkbox Next To Name

First the classic HTML “Selenium” approach:

UI.Vision can execute XPath expressions, which can be used to navigate the DOM of the webpage. If each name in the table is within a predictable structure (like the same table row as the checkbox), you could write an XPath expression to find the checkbox based on the name’s position. Here is an example assuming the name and checkbox are in the same table row:


{
  "Name": "CheckNameCheckbox",
  "CreationDate": "2024-03-28",
  "Commands": [
    {
      "Command": "click",
      "Target": "xpath=//div[contains(text(),'John Doe')]/../..//input[@type='checkbox']",
      "Value": ""
    }
  ]
}

In this example, the XPath finds a div containing the text “John Doe”, then navigates up two levels to the common parent element (presumably the table row), and then looks for an input of type checkbox within that parent element. Adjust the XPath as necessary to match the actual structure of your HTML.

Of course, since I have no access to the website, I can not test this RPA code snippet.

See also this post on how to extract text to another text. That is roughly the same issue.