Selenium in Excel VBA
Selenium is a tool to automate web application using different browsers such as Internet Explorer, Mozilla Firefox, Chrome etc. Selenium Webdriver contains plug-ins for many programming languages such as Java, Ruby, C#, Python etc.
In this post, we are going to learn how to use the selenium webdriver in excel VBA. To do that, you should have to download and install the selenium addins. Follow the below steps to use selenium in Excel VBA
Download and install the selenium add-in in your machine. You can download the add-in.
Related Post How to use autoit in Excel VBA?
In Excel, go to the developer tab->Visual Basic or use the shortcut Alt+F11. Microsoft visual basic editor will be launched.
Go to Tool-> Reference. You’ll find a reference “Selenium Type Library” select and click OK button.
Insert –> Module to insert the new module in VBA editor
Enter the below code to check whether it automate your browser or not.
It opens the Firefox driver, Navigate to google webpage, Maximize browser and auto close.
You can also download this workbook
Check out the video Demo here
Let me know your doubts via comments.