Which library to import in Python to read data from an Excel file, for automation testing using Selenium?

Question:

Which library to import in Python to read data from an Excel file, I want to store different xpaths in Excel file for automation testing using Selenium?

Asked By: Yogesh

||

Answers:

The xlrd library is what you are looking for to read excel files. And to write, you can use xlwt.

Answered By: Kidus

You may use XlsxWriter. It is a Python module for writing files in Excel.
xlutils is also very useful collection of utilities for automating excel sheet operations.

https://xlsxwriter.readthedocs.io/

Answered By: saket saurabh
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.