Storetext does not copy xpath

Hello my friends!
First post here asking for help, if something is wrong I apologize.
I’m trying to use Storetext to copy a specific field from the website’s code and attach it to my macro, but I’ve tried everything and the Storetext result is empty.
This is the website code:

I need StoreText to copy what is inside name, as MjAyNDEyNjAw changes with each process.
I already know how to attach this to a website and open the page I want, but I’ve tried all possible Xpath’s and StroreText doesn’t copy what’s inside name “MjAyNDEyNjAw”.
How can I do this?

MjAyNDEyNjAw

{
  "Name": "TESTE - xpath",
  "CreationDate": "2024-7-15",
  "Commands": [
    {
      "Command": "storeText",
      "Target": "//*[@id="list-locais"]/table/tbody/tr",
      "Value": "LINK",
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "LINK",
      "Value": "!CSVLINE",
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "${LINK}",
      "Value": "!CSVLINE",
      "Description": ""
    },
    {
      "Command": "csvSave",
      "Target": "TESTE",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "selectWindow",
      "Target": "tab=open",
      "Value": "https://emec.mec.gov.br/modulos/visao_comum/php/com_andamento_processo.php?e0bfe59f30363feb951da8cfe3c7ff34=NDg0ODY=&e268fba8e236c47ac89b6d9cb1f8705d=${LINK}",
      "Description": ""
    }
  ]
}

Execution result:
LINK,
LINK,

LINK variable has empty value or space

Xpath is directed to copy the “MjAyNDEyNjAw” that is inside name=“”. However, it doesn’t copy anything and the variable is empty. I need the Storetext to copy what is in name=“”, to be like Link, MjAyNDEyNjAw when running.

Any chance to provide a link to the website?

Note: If this is actually an input field, use storeValue.

    {
      "Command": "storeAttribute",
      "Target": "xpath=//*[@id=\"list-locais\"]/table/tbody/tr@name",
      "Value": "LINK",
      "Description": ""
    }
1 Like

Perfect!
It worked as I needed using StoreAttribute. Thanks for the time and solution!