I wrote code but it cant take next row data, it take one row and stopes and shows result no data save to CSV file
{
“Name”: “dd-1”,
“CreationDate”: “2024-4-27”,
“Commands”: [
{
“Command”: “store”,
“Target”: “1”,
“Value”: “nextRow”,
“Description”: “Initialize nextRow to start from the first row”
},
{
“Command”: “csvRead”,
“Target”: “C:UsersadminDesktopblog.csv”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “bringBrowserToForeground”,
“Target”: “”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “store”,
“Target”: “${!csvReadLineNumber}”,
“Value”: “ROWCOUNT”,
“Description”: “”
},
{
“Command”: “waitForElementPresent”,
“Target”: “xpath=/html/body”,
“Value”: “”,
“Targets”: [
“xpath=/html/body”,
“xpath=//body”,
“css=body”
],
“Description”: “”
},
{
“Command”: “label”,
“Target”: “startLoop”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “open”,
“Target”: “https://nl.thatneedle.com/trial2”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “executeScript_Sandbox”,
“Target”: “return parseInt(‘${ROWCOUNT}’) + 1”,
“Value”: “nextRow”,
“Description”: “”
},
{
“Command”: “csvRead”,
“Target”: “C:UsersadminDesktopblog.csv”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “executeScript_Sandbox”,
“Target”: “return ${!COL1}”,
“Value”: “COLUMNVALUE1”,
“Description”: “”
},
{
“Command”: “echo”,
“Target”: “Column 1 value is ${COLUMNVALUE1}”,
“Value”: “”,
“Description”: “Output the values of columns”
},
{
“Command”: “echo”,
“Target”: “Column value at Row ${!csvReadLineNumber}: ${COLUMNVALUE1}”,
“Value”: “”,
“Description”: “Print the column value”
},
{
“Command”: “executeScript_Sandbox”,
“Target”: “return parseInt(${ROWCOUNT}) + 1;”,
“Value”: “nextRow”,
“Description”: “Increment csvReadLineNumber to read the next row”
},
{
“Command”: “echo”,
“Target”: “Next Row: ${nextRow}”,
“Value”: “”,
“Description”: “Print the column value”
},
{
“Command”: “type”,
“Target”: “id=t1”,
“Value”: “INPUTDATA”,
“Targets”: [
“id=t1”,
“xpath=//[@id=”t1″]”,
“xpath=//textarea[@id=’t1′]”,
“xpath=//textarea”,
“css=#t1”
],
“Description”: “”
},
{
“Command”: “click”,
“Target”: “id=eqcheck”,
“Value”: “”,
“Targets”: [
“id=eqcheck”,
“xpath=//[@id=”eqcheck”]”,
“xpath=//div[@id=’eqcheck’]”,
“xpath=//div[3]/div”,
“css=#eqcheck”
],
“Description”: “”
},
{
“Command”: “storeText”,
“Target”: “id=eqresult”,
“Value”: “resultData”,
“Description”: “”
},
{
“Command”: “csvSave”,
“Target”: “C:UsersadminDesktopblog1.csv”,
“Value”: “inputData”,”resultdata””,
“Description”: “”
},
{
“Command”: “gotoIf”,
“Target”: “rowCount === ${!csvReadLineNumber}”,
“Value”: “loop”,
“Description”: “”
},
{
“Command”: “open”,
“Target”: “title=Entity Extraction Testing”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “selectWindow”,
“Target”: “title=Entity Extraction Testing”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “click”,
“Target”: “id=t1”,
“Value”: “”,
“Targets”: [
“id=t1”,
“xpath=//[@id=”t1″]”,
“xpath=//textarea[@id=’t1′]”,
“xpath=//textarea”,
“css=#t1”
],
“Description”: “”
},
{
“Command”: “type”,
“Target”: “id=t1”,
“Value”: “How has the pandemic impacted Bollywood and the entertainment industry in general? Will the entertainment business, specifically the theatrical film business, go back to how it was? Why are Spider-Man and some Southern films scoring high on the box office, whereas Hindi films are struggling? Is there a need for a collective course correction for Bollywood, and is there a need to reach out to and replenish our bases amongst the masses? These are questions that are being continuously discussed. One has been asked these in various forums as well as privately. I will try and build a narrative of answers to address them.n”,
“Targets”: [
“id=t1”,
“xpath=//[@id=”t1″]”,
“xpath=//textarea[@id=’t1′]”,
“xpath=//textarea”,
“css=#t1”
],
“Description”: “”
},
{
“Command”: “click”,
“Target”: “id=eqcheck”,
“Value”: “”,
“Targets”: [
“id=eqcheck”,
“xpath=//[@id=”eqcheck”]”,
“xpath=//div[@id=’eqcheck’]”,
“xpath=//div[3]/div”,
“css=#eqcheck”
],
“Description”: “”
},
{
“Command”: “click”,
“Target”: “xpath=/html/body”,
“Value”: “”,
“Targets”: [
“xpath=/html/body”,
“xpath=//body”,
“css=body”
],
“Description”: “”
},
{
“Command”: “open”,
“Target”: “https://chat.openai.com/c/f269777b-5f2c-475f-81ed-29f9e0364ea5”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “open”,
“Target”: “https://nl.thatneedle.com/trial2”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “click”,
“Target”: “id=t1”,
“Value”: “”,
“Targets”: [
“id=t1”,
“xpath=//[@id=”t1″]”,
“xpath=//textarea[@id=’t1′]”,
“xpath=//textarea”,
“css=#t1”
],
“Description”: “”
},
{
“Command”: “type”,
“Target”: “id=t1”,
“Value”: “How has the pandemic impacted Bollywood and the entertainment industry in general? Will the entertainment business, specifically the theatrical film business, go back to how it was? Why are Spider-Man and some Southern films scoring high on the box office, whereas Hindi films are struggling? Is there a need for a collective course correction for Bollywood, and is there a need to reach out to and replenish our bases amongst the masses? These are questions that are being continuously discussed. One has been asked these in various forums as well as privately. I will try and build a narrative of answers to address them.”,,,,,,,,,,,,,,,n”Those who say that introduction of one new medium never changes things for the existing media are, at best, telling us the half-truth. Imagine India of 1965 when Dev Anand’s Guide first released. The only forms of mass media that existed apart from cinema were radio and newspapers. Now, imagine if that continued to be the case even today. While we would have had many more cinema screens to watch the same movie, and the film industry would be way bigger in terms of financial size, the avenues of consuming entertainment would have remained unchanged.”,,,,,,,,,,,,,,,n”Greta Gerwig’s eponymous movie about the doll Barbie is more than just a pink riot. The ‘114-minute thrill ride’, replete with gorgeous costumes and spectacular sets, and pastel idiosyncrasies, delves into complex human emotions and the search for individual identity.”,
“Targets”: [
“id=t1”,
“xpath=//[@id=”t1″]”,
“xpath=//textarea[@id=’t1′]”,
“xpath=//textarea”,
“css=#t1”
],
“Description”: “”
},
{
“Command”: “click”,
“Target”: “id=eqcheck”,
“Value”: “”,
“Targets”: [
“id=eqcheck”,
“xpath=//[@id=”eqcheck”]”,
“xpath=//div[@id=’eqcheck’]”,
“xpath=//div[3]/div”,
“css=#eqcheck”
],
“Description”: “”
}
]
}
kirti pandit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.