Hi, I tried to a code below:
{
"Name": "Vinlac - Get Link",
"CreationDate": "2021-5-24",
"Commands": [
{
"Command": "open",
"Target": "https://www.facebook.com/vinlacnt",
"Value": "",
"Description": ""
},
{
"Command": "storeAttribute",
"Target": "xpath=//*[contains(@id,\"jsc_c_\")]/span[2]/span/a@href",
"Value": "mylink",
"Description": ""
},
{
"Command": "echo",
"Target": "The link is ${mylink}",
"Value": "red",
"Description": ""
},
{
"Command": "open",
"Target": "${mylink}",
"Value": "",
"Description": ""
}
]
}
But it doesn’t working for me. The echo result:
[echo] The link is #
Is the problem because the relative path? But I can’t use absolute path because the id dynamic every time the page reload.
The example page:
Please try to get the link of the first post. Please check the screenshot below, it will help explain my situation better.