SeleniumBasic – Automation error

The problem

Imagine the following scenario: You develop the project for your client using Selenium VBA as a library, everything works perfectly, in all browsers, drivers, etc. All tests pass wonderfully.

Then you send the file along with all installation instructions. But when the client runs your file, the following error is displayed:

The solution

Install .NET Framework 3.5 on the computer. You can download it here:

https://docs.microsoft.com/en-us/dotnet/framework/install/dotnet-35-windows-10

After it’s installed, run the application again.

The explanation

Although it runs in the context of VBA, which is a native Windows application, SeleniumBasic is developed under .NET Framework, specifically version 3.5, which makes its execution dependent on it.

It’s no use having only .NET Framework 2.0 or 4.0. They are independent and need to be installed separately.