How to compare a value from the web page with the CSV value?
You can compare a value from the webpage with the CSV table value as follows: • 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. Sample Script: webresult=webGetText() for i in range(0,len(result)): var1=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”) where webresult has the value that needs to be checked with CSV file.
Related Questions
- How do the nutritional content and nutritional value of black versus white beans compare?
- How to compare a value from the web page with the database table value ?
- How to compare a value from the web page with the database table value ?
- How to compare a value from the web page with the CSV value?
- How to compare a value from the webpage with the CSV value?
- How to compare a value from the webpage with the CSV value?