:::: MENU ::::
Browsing posts in: Selenium IDE

Steps to add Read CSV to Selenium IDE

Thanks for all your appreciations, i am adding this post to help with installation.

Before you start, download csvreader file and save it to any place you want, just make sure you remember the path.

Then install Selenium IDE, and then go to “Options” and Select Option on menu bar.

Then, on General tab you will have an option of “Selenium Core extensions(user-extensions.js)” click on Browse.



Find the csvreader file you just saved and add its path click “Open”.

Restart Selenium IDE,

That’s it!
You are done setting up the add-on.

Including test script.

Add the sample test case and edit the file path.
Run the test case and see the logs generated.


Read a CSV file in Selenium IDE

Finally, here is simple yet efficient code to read a CSV file in Selenium IDE for data driven testing.

Two commands needed to do this, first you need to read file so use “Readcsv” file and this will read you file, you can use this data in multiple test cases, test suite by specifying cell position of data you want to read so use the second command “StoreCellValue” specify variable name and use this across your test case/ test suite.

You can also specify dynamic values instead of static values for cell positions.



Add below JavaScript file to your Selenium IDE plug-in. Using options menu.

CSVRead_Selenium IDE (code file)

I have also added example code.

readcsv(example file)

Fork me on GitHub