CSVReader

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 the CSVRead User-ExtensionJavaScript file (attached below) to your Selenium IDE plug-in. Using options menu.

I have attached an example test case file below (readcsv.html).

File: 

AttachmentSize
Plain text icon CSVRead User-Extension3.64 KB
HTML icon Selenium Test file1.31 KB

Type: 

User-Extension