Read from csv and save result to csv

Hi, everyone!

I used to use iMacros, but now I’m trying to learn Ui.Vision.
My current task is to enter data into a form on a website from a CSV file and then save the results to a CSV file. The results are copied to the clipboard and then need to be saved to a CSV file. At first glance, the task doesn’t seem difficult, but I don’t know how to do it. Please help me with this.

{
“Name”: “FamilyName”,
“CreationDate”: “2026-3-20”,
“Commands”: [
{
“Command”: “open”,
“Target”: “https://site.com/”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “click”,
“Target”: “id=family-name”,
“Value”: “”,
“Targets”: [
“id=family-name”,
“name=family-name”,
“xpath=//[@id=“family-name”]",
“xpath=//input[@id=‘family-name’]”,
“xpath=//div[3]/input”,
“css=#family-name”
],
“Description”: “”
},
{
“Command”: “type”,
“Target”: “id=family-name”,
“Value”: “Р”Family1”,

//need input Family1 from csv*
“Targets”: [
“id=family-name”,
“name=family-name”,
“xpath=//[@id=“family-name”]”,
“xpath=//input[@id=‘family-name’]”,
“xpath=//div[3]/input”,
“css=#family-name”
],
“Description”: “”
},
{
“Command”: “type”,
“Target”: “id=given-name”,
“Value”: “Р”Name1”,
//need input Name1 from csv
“Targets”: [
“id=given-name”,
“name=given-name”,
“xpath=//
[@id=“given-name”]”,
“xpath=//input[@id=‘given-name’]”,
“xpath=//div[4]/input”,
“css=#given-name”
],
“Description”: “”
},
{
“Command”: “type”,
“Target”: “id=patronymic-name”,
“Value”: “Р”PatronymicName1”,*
//need input PatronymicName1 from csv*
“Targets”: [
“id=patronymic-name”,
“name=patronymic-name”,
“xpath=//[@id=“patronymic-name”]”,
“xpath=//input[@id=‘patronymic-name’]”,
“xpath=//div[5]/input”,
“css=#patronymic-name”
],
“Description”: “”
},
//action - click submit button
{
“Command”: “click”,
“Target”: “xpath=//
[@id=“declension-form”]/div/div[2]/button”,
“Value”: “”,
“Targets”: [
“xpath=//[@id=“declension-form”]/div/div[2]/button”,
“xpath=//button[@type=‘submit’]”,
“xpath=//div[2]/button”,
“css=#declension-form > div > div:nth-child(2) > button”
],
“Description”: “”
},
//next action - click to copy the result1 to the clipboard
{
“Command”: “click”,
“Target”: “xpath=//
[@id=“copy-nominative-case-button”]/i”,
“Value”: “”,
“Targets”: [
“xpath=//[@id=“copy-nominative-case-button”]/i”,
“xpath=//button/i”,
“css=#copy-nominative-case-button > i”
],
“Description”: “”
},
//need save from clipboard to csv
//next action - click to copy the result2 to the clipboard

{
“Command”: “click”,
“Target”: “xpath=//
[@id=“copy-genitive-case-button”]/i”,
“Value”: “”,
“Targets”: [
“xpath=//[@id=“copy-genitive-case-button”]/i”,
“xpath=//tr[3]/td[2]/button/i”,
“css=#copy-genitive-case-button > i”
],
“Description”: “”
},
//need save from clipboard to csv
//next action - click to copy the result3 to the clipboard

{
“Command”: “click”,
“Target”: “xpath=//
[@id=“copy-dative-case-button”]/i”,
“Value”: “”,
“Targets”: [
“xpath=//[@id=“copy-dative-case-button”]/i”,
“xpath=//tr[4]/td[2]/button/i”,
“css=#copy-dative-case-button > i”
],
“Description”: “”
},
//need save from clipboard to csv
//next action - click to copy the result4 to the clipboard

{
“Command”: “click”,
“Target”: “xpath=//
[@id=“copy-accusative-case-button”]/i”,
“Value”: “”,
“Targets”: [
“xpath=//[@id=“copy-accusative-case-button”]/i”,
“xpath=//tr[5]/td[2]/button/i”,
“css=#copy-accusative-case-button > i”
],
“Description”: “”
},
//need save from clipboard to csv
//next action - click to copy the result5 to the clipboard

{
“Command”: “click”,
“Target”: “xpath=//
[@id=“copy-ablative-case-button”]/i”,
“Value”: “”,
“Targets”: [
“xpath=//[@id=“copy-ablative-case-button”]/i”,
“xpath=//tr[6]/td[2]/button/i”,
“css=#copy-ablative-case-button > i”
],
“Description”: “”
},
//need save from clipboard to csv
//next action - click to copy the result6 to the clipboard

{
“Command”: “click”,
“Target”: “xpath=//
[@id=“copy-locative-case-button”]/i”,
“Value”: “”,
“Targets”: [
“xpath=//[@id=“copy-locative-case-button”]/i”,
“xpath=//tr[7]/td[2]/button/i”,
“css=#copy-locative-case-button > i”
],
“Description”: “”
},
//need save from clipboard to csv
//next action - click to copy the result7 to the clipboard

{
“Command”: “click”,
“Target”: “xpath=//
[@id=“copy-vocative-case-button”]/i”,
“Value”: “”,
“Targets”: [
"xpath=//*[@id=“copy-vocative-case-button”]/i”,
“xpath=//tr[8]/td[2]/button/i”,
“css=#copy-vocative-case-button > i”
],
“Description”: “”
}
]
}