Click on a div with id stored in variable

Hi everyone, I used some javascript to store in a variable the id of the div I need to click on. I need to use the xpath to be able to click one of its childrens, but UI-vision doesn’t seem to accept my command. Here it is:

{
      "Command": "click",
      "Target": "xpath=//tr[@id=${idLine}]/td[5]/div/button",
      "Value": "",
      "Description": ""
    }

Does anyone know a way to go through this problem ?
Thanks a lot :slight_smile:

What error message do you get? Is there a test macro that I could run?

I didn’t touch my code since when I post this question. I just got to touch it again and found what was wrong with it. I forgot the quotes on both side of my variable. This is the working code:

{
      "Command": "click",
      "Target": "xpath=//tr[@id=\"${idLigne}\"]/td[5]/div/button",
      "Value": "",
      "Description": ""
    }

Thank you Ulrich for trying to help me.
I’ll close this subject.