title: UFT doesn't click a Radio button based on the adjacent text
body: <p>I am using UFT 15.0.2 to automatize some Web GUI Tests using VB Script. I have to click on a Radio Button which is adjacent to a text (product code) but it doesn't work because when I used Record to click on the WebCheckBox, UFT pasted that line:</p>
  <p><code>Browser(&quot;B&quot;).Page(&quot;P&quot;).Frame(&quot;FrameID&quot;).WebElement(&quot;offRadio&quot;).Click</code></p>
  <p><img src="https://i.stack.imgur.com/w9sLi.png" alt="Adding product page" /></p>
  <p>Since this html page is under a Shadow-Root, none of the xpath/css is not working. Hence I am trying to use object repository to identify the radio button using the product code like how we write in xpath.</p>
  <p><img src="https://i.stack.imgur.com/ZI8QK.png" alt="Object spy of product" /></p>
  <p>Before shadowDOM implementation the code was working as below with xpath:</p>
  <pre><code>CheckBoxInputparam1 = &quot;//span[text()='&quot;
  CheckBoxInputparam2 = &quot;']/../../../../../../../../..//PAPER-CHECKBOX&quot;
  CheckBoxInputparam3 = &quot;']/../../../../../../../../..//PAPER-RADIO-BUTTON&quot;
  checkboxXpath    = CheckBoxInputparam1&amp;ProductList(0)&amp;CheckBoxInputparam2
  radioBtnXpath    = CheckBoxInputparam1&amp;ProductList(0)&amp;CheckBoxInputparam3
  </code></pre>
  <p>Could someone help me?</p>