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:
Browser("B").Page("P").Frame("FrameID").WebElement("offRadio").Click

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.

Before shadowDOM implementation the code was working as below with xpath:
CheckBoxInputparam1 = "//span[text()='"
CheckBoxInputparam2 = "']/../../../../../../../../..//PAPER-CHECKBOX"
CheckBoxInputparam3 = "']/../../../../../../../../..//PAPER-RADIO-BUTTON"
checkboxXpath = CheckBoxInputparam1&ProductList(0)&CheckBoxInputparam2
radioBtnXpath = CheckBoxInputparam1&ProductList(0)&CheckBoxInputparam3
Could someone help me?