csvRead (file name) - Selenium IDE command

The purpose of csvRead is to read data from a CSV file. Each macro loop reads one line of the CSV file and makes the data in the available with the ${!COL1}, ${!COL2},... internal variables.

Important: To submit more than just the first line of the CSV file, you must start the macro with the LOOP button. Each loop reads one line of the CSV. The line read is based on the value of the ${!LOOP} counter variable. If you make the loop run from 5 to 10, it will read lines 5 to 10 from the CSV file.

CSV Manager: Import (load) and export (save) CSV files from the Kantu extension

Use the CSV Manager tab to import (load) and export (save) CSV files to and from the Kantu extension.

csvRead Example

This short example below reads names from a CSV file called "user.csv" and then fills the data into a form using the ${COL1} and ${COL2} internal variable. The CSV file has to be loaded in the Kantu extension on the CSV tab to the local browser storage, it is not read from file.

Command Target Pattern/Text
open https://a9t9.com/
csvRead user.csv
type id=firstname ${!COL1}
type id=lastname ${!COL2}

Works in

Kantu for Chrome Selenium IDE

Related Demo Macros


See also

csvSave, storeEval, Selenium IDE commands, Classic Firefox Selenium IDE.

Anything wrong or missing on this page? Suggestions?

...then please contact us.

Kantu Selenium IDE for Chrome and Firefox - Web Test Automation
Subscribe to the a9t9 automation software newsletter . We'll send you updates on new releases that we're working on.