Here on this link there’s a simple page with an iframe tag, the iframe tag leads to Demo Site - Asynchronous file upload . This script used to work with iframes inside a page, furthermore the script works well on the upload page itself what makes me wonder if the iframe selection is really working.
This is my script:
{
“Name”: “MyMacro”,
“CreationDate”: “2022-5-12”,
“Commands”: [
{
“Command”: “open”,
“Target”: “https://nimbus21.github.io/”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “selectFrame”,
“Target”: “index=0”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “click”,
“Target”: “id=my_file”,
“Value”: “”,
“Targets”: [
“id=my_file”,
“name=my_files”,
“xpath=//[@id="my_file"]",
“xpath=//input[@id=‘my_file’]”,
“xpath=//input[2]”,
“css=#my_file”
],
“Description”: “”
},
{
“Command”: “type”,
“Target”: “id=my_file”,
“Value”: “C:\home\locke\Pictures\mypic1.jpg”,
“Targets”: [
“id=my_file”,
“name=my_files”,
"xpath=//[@id="my_file"]”,
“xpath=//input[@id=‘my_file’]”,
“xpath=//input[2]”,
“css=#my_file”
],
“Description”: “”
},
{
“Command”: “click”,
“Target”: “name=action”,
“Value”: “”,
“Targets”: [
“name=action”,
“xpath=//*[@id="main"]/input[3]”,
“xpath=//input[@name=‘action’]”,
“xpath=//input[3]”,
“css=#main > input:nth-child(3)”
],
“Description”: “”
}
]
}