I am trying to automate upload of multiple files in parallel to a webpage from a local drive. Script generated by UI.Vision recorder works just fine for a single file. Unfortunately I am not able to modify it to upload 2 or more files (C:\Data\pic1.jpg, C:\Data\pic2.jpg, …).
I am new to coding / test automation domain and I cannot help myself though I have spent few evenings with this. Can anybody help please?
json generated by recorder:
{
"Command": "click",
"Target": "xpath=//*[@id=\"dropzoneods\"]/a/span",
"Value": "",
"Targets": [
"xpath=//*[@id=\"dropzoneods\"]/a/span",
"xpath=//a/span",
"css=#dropzoneods > a > span"
]
},
{
"Command": "type",
"Target": "name=souborp[]",
"Value": "C:\\Data\\pic1.jpg",
"Targets": [
"name=souborp[]",
"xpath=//*[@id=\"formpridani\"]/table/tbody/tr/td/input[3]",
"xpath=//input[@name='souborp[]']",
"xpath=//td/input[3]",
"css=#formpridani > table > tbody > tr:nth-child(1) > td > input:nth-child(27)"
]
},