How to compare a value from the webpage with the CSV value?
To compare a value from the webpage with the CSV table value follow below steps: • Get the value from the web page that needs to be compared by using the function webGetText() or getCellValueAt() • In the data configuration, select the CSV file in which the values needs to be checked. Then, click paste button to paste the corresponding script in the script editor. • Now you can compare the value from the web page with CSV file. Example: initDataSet(“test”) csvvalues = getValuesFrom(“test”) result=getAllHTMLTableCells(“Table1”) for i in range(0,len(result)): var1=str(csvvalues[i][0]) webresult = str(result[i][0]) if webresult==var1: displayMessage(“Value matches in webpage and CSV file”) else: displayMessage(“Value doesn’t matches in webpage and CSV file”) In the above the array of values retrieved from the web page table is compared against the array of values present in a CSV file.