Hi @admin @Plankton @ulrich @thecoder2012
I tried to store href in a simple image but give me an error I can store alt but not store href.
Ui vision can store href from images and links ?
Why alt working but href not working ?
I tried this demo but do not work.
https://ui.vision/rpa/docs/selenium-ide/storeattribute
Thanks for help.
My macro code
{
"Name": "Store-href",
"CreationDate": "2020-2-21",
"Commands": [
{
"Command": "open",
"Target": "https://ui.vision/",
"Value": ""
},
{
"Command": "storeAttribute",
"Target": "xpath=//*[@id=\"logo\"]/img@href",
"Value": "mylink"
},
{
"Command": "storeAttribute",
"Target": "xpath=//*[@id=\"logo\"]/img@alt",
"Value": "myalt"
},
{
"Command": "echo",
"Target": "The image links to ${mylink} and its ALT text is ${myalt}",
"Value": ""
}
]
}
Result
- [status]
Playing macro Store-href
- [info]
Executing: | open | https://ui.vision/ | |
- [info]
Executing: | storeAttribute | xpath=//*[@id=“logo”]/img@href | mylink |
- [error][ignored]
missing attribute ‘href’
- [info]
Executing: | storeAttribute | xpath=//*[@id=“logo”]/img@alt | myalt |
- [info]
Executing: | echo | The image links to ${mylink} and its ALT text is ${myalt} | |
- [echo]
The image links to #LNF and its ALT text is UI Vision by a9t9 software - Image-Driven Automation
- [info]
Macro completed (Runtime 4.12s)