An error occurred initializing the VBA libraries – Selenium DataDriven

I use Excel to store the test data and keep all the excel files in a share drive for others to use the same file. I was getting the following error when I was trying to run my selenium C# scripts using NUnit.
System.Runtime.InteropServices.COMException : An error occurred initializing the VBA libraries (112).
The reason for this issue is because of wrong path I specified in my selenium script to open the excel file. Once I changed the path; the selenium script was able to access the test data and exception was resolved.
[ad#PostAD]


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>