Tutorialspoint

New Year, New Skills | Use: NEW10 | Get Flat 10% OFF

VBA Selenium Web Scraping

person icon Ajay Parmar

4.4

VBA Selenium Web Scraping

WebScraping with VBA Selenium via Google Chrome

updated on icon Updated on Jan, 2026

language icon Language - English

person icon Ajay Parmar

category icon Development ,Software Testing,Selenium Testing Framework

Lectures -36

Resources -14

Duration -8 hours

Lifetime Access

4.4

price-loader

Lifetime Access

30-days Money-Back Guarantee

Training 5 or more people ?

Get your team access to 10000+ top Tutorials Point courses anytime, anywhere.

Course Description

In Part 1, you shall learn below things written. Please go through them.

  • We are going to learn Web Scraping using Google Chrome, and it will be done using the Selenium library.

  • Learn how to download Selenium and browser drivers to initially do the setup.

  • How to work with attributes like name, id, using findElement methods.

  • How to work with tags like an A tag and its attribute href to click on the links.

  • How to use the class attribute, and is it a good approach to use the class attribute?

  • how to work with Xpath to insert the data into textboxes and click on search buttons. Not just use but understand the structure of Xpath as well.

  • Learn how we can change the xpath elements by their indexes.

  • How to work with header tags like h1 or h2, or h3, using the normal way and using xpath.

  • How to run the collection loops and why we need it, and when we can avoid using collection loops.

  • What is the difference between Web-element and Webelements, and why do we use the set word for collection elements and not for a single object?

  • How to click on links on a webpage using link-text and partial link-text property. Based on this knowledge, one mini project -how to load the website by default on the current date.

  • How to scrape tables and their rows and rows of data values and table headers.

  • Collection loops design and execution from the very start while working with tables.

  • Do you like to export all tables in a website, or do you want to scrape one specific table only? How to reach out to a specific index of a table, then?

  • How to scrape specific rows inside one specific table. Know your "tr' tags.

  • How to scrape all data inside the rows or just one specific data value using the td tag. It's awesome when you have so much control.

  • How to export tables without running collection loops, and what is the difference between direct export and export using loops? You must know.

  • How to work with li tags inside unordered and ordered lists.

  • Know how to insert a value in drop-down or combo-boxes.

  • How to select items in a list box with a single select property or multi multi-select property.

  • Learn to select or deselect listbox options using collection loops or without the loops.

  • How to alter the collection elements by referring to one object and second inside the first one and so on.
  • First and foremost, this is a Part 2. Students must have seen Part 1 before.
  • Students will learn how to download the files

  • How to add or manage Cookies of a website and how to use them in a practical situation.

  • How to take screenshots and save those on the desktop or export them in Excel.

  • How to launch new website pages in a new window tab.

  • Move from the first window to the second and so on. Challenges and more robust solutions to handle the window tabs.

  • You will see one of the real data-based projects, which is super duper awesome for learning and getting confidence in webscraping.

  • We will see how to log in to the website and how to sort out captcha issues by simply letting the code wait for some time till the user enters the captcha.

  • We will revise our learning in part 1 as to how to practically use links using elementbyid, name or class attributes. Also, the best use of Xpath.

  • If the page refreshes for a long time or is uncertain, how to put a wait time.

  • You will see the use of magnificent loops and IF Conditions on this project. How smartly we have used the loops and IF Conditions, and clicking on elements.

  • In this project, you shall see how to fully control the website elements like drop-downs or a tags from Excel lists, which are written on sheets.

  • So far work done is going to be noted in an Excel sheet, marking the status as Done, so next time when the code runs, it avoids previously already done codes.

Who this course is for:

  • If you are a Business analyst and want to learn how to scrape websites using Chrome or other major browsers.
  • If you like to export website tables into Excel. If you like to click on website links or fill up a form, or download files, etc.

Goals

  • Welcome to Part 1 of this VBA Selenium course. Please note what we are covering in Part 1
  • How to use the Selenium library inside the Excel VBA Editor to scrape websites that support major browsers like Chrome, Mozilla, Firefox, Edge, etc.
  • We are using the Chrome browser in this series to scrape website elements but you will know how to use other browsers as well.
  • How to download the Selenium library, and what is the procedure to download browser webdrivers
  • How to navigate websites using Chrome browsers
  • Learn how to use attributes ID & name or classes to enter a value in the search box or text boxes.
  • Which attribute should you use and why? How to use the find function on a website for manual search, and why it is important to be familiar with this method.
  • How to click the buttons using attributes like id, name, and classname
  • How to work with tags like A tags and their attribute href.
  • Also, learn how to use HTML in Notepad and create webpages. It will help you visualise things.
  • Know how tables are designed on websites and how we can export every table in one go. Know table tags
  • Know table row tags and how to work with every row or one specific row and export whatever you need.
  • Know table headers and table data tags like th and td. Learn how to locate a specific td tag
  • What are collection loops used to scrape tables, OR how to scrape one specific table only?
  • What if the user wants to see data for a few clients only out of 1000s of rows? How to control these tables from Excel, where the user enters the names.
  • What is the fundamental difference between a web element and its collection elements?
  • Why and where we need the SET Keyword and where to avoid it. Proper explanation given.
  • Using send keys and enter if the search button is unable to search data for you.
  • How to use the Header or Rows count property in code to handle them together. It's an amazing approach.
  • How to use Xpath to enter keywords in input boxes, and how we can click on search buttons using xpath
  • How to read Xpath DOM structure. A proper explanation is given.
  • How to use Xpath to scrape tables.
  • How to work with tags like headers - H1, H2, H3 on individual levels and using the Xpath method and its benefits.
  • How to understand VBA Errors if they pop up on screen instead of going to Google.
  • How to work with a listbox with a single property or multiple properties.
  • How to work with drop-down using index, text and values property.
  • Your questions and projects were also discussed. Go inside the page drop-down and then inside the second one.
  • This is Part 2, and you are requested to go through Part 1 First. In this part2 we are learning how to store cookie data and how to use it practically.
  • You will learn how to navigate different windows on websites.
  • How to define the windows or run a collection loop to activate or close them. It's all about fundamentals.
  • In part 1, whatever we have learnt will be used in this project now.
  • You will get a project from me, A very big and practical project
  • From attributes like elements by name, or id or classes or their xpath - we will use all and understand them line by line.
  • From selecting the dropdown and giving code a time to wait for seconds, how loops are going to be set up. We will see everything in this project.
  • How to set up the clickable list of categories in Excel and have their status updated as Done in Excel.
  • How to handle reCAPTCHA by letting the code wait for a few seconds. No need to use paid captcha software. Just use the basics.
  • How to avoid re-login if your website creates an issue in frequent logins or multiple logins.
  • How to download files from websites and locate them in your folders.
  • How to take screenshots of websites or Excel desktop using the image class. It's super fun.
  • You will learn how to identify if our element is present on a webpage or not
  • What is a By class and how can we use it?

Prerequisites

  • You should have good understanding of VBA for next Loops and good understanding of IF functions.

VBA Selenium Web Scraping

Curriculum

Check out the detailed breakdown of what’s inside the course

Introduction to Selenium VBA Part1

28 Lectures
  • play icon How to Download Selenium and chrome driver exe files 16:54 16:54
  • play icon Let us Launch the website and understand the concepts. 11:33 11:33
  • play icon Work with ID attribute 22:51 22:51
  • play icon Work with Name Attribute 10:09 10:09
  • play icon Work with a Class 15:39 15:39
  • play icon Work with Atags hyperlinks 31:01 31:01
  • play icon Work with Tables - HTML of Tables Behind coding - Part1 16:34 16:34
  • play icon Work with Tables - Export every table data into excel -Part2 13:37 13:37
  • play icon Work with Tables - Target the specific countries list from excel sheet - Part3 30:38 30:38
  • play icon How to target specific td tags in a table - Superb Control - Part4 09:08 09:08
  • play icon Target specific table among many and then target specific data -Part5 09:44 09:44
  • play icon Work with Table specific rows -Part6 05:31 05:31
  • play icon How to scrape a table in a reverse order - Part7 10:35 10:35
  • play icon Learn how to handle Headers and Data in one code -Count property -Part8 08:31 08:31
  • play icon How to start with Xpath 08:52 08:52
  • play icon Use Xpath to export Tables -Part2 04:50 04:50
  • play icon Xpath to refer to specific object by editing -Must know Part3 10:28 10:28
  • play icon How to handle Headers tags along and with Xpath - H1,H2,H3 tags 10:52 10:52
  • play icon Work with Check if element exist 06:12 06:12
  • play icon Let us deal with dropdown now 12:52 12:52
  • play icon Work with Partial Link text property- Click just by finding the text on website 05:35 05:35
  • play icon Partial Link method - How to click website links even if you know few words. 09:31 09:31
  • play icon Project for you- Load a website with today date page showing information 06:17 06:17
  • play icon How to select item in a drop down -Select Webelement Class 07:20 07:20
  • play icon Student Project is done here- More confident now . 26:19 26:19
  • play icon Work with ListBox - Single select property - Part1 22:42 22:42
  • play icon Work with listbox which has multi-select property on - Part2 09:43 09:43
  • play icon Work with Listbox -How to export list box selected or all values -Part3 13:50 13:50

Introduction to VBA Selenium Web Scraping Part 2

8 Lectures
Tutorialspoint

Instructor Details

ajay parmar

ajay parmar

I have been teaching online from 13 years now and teaching is my hobby and passion. I cannot think of anything better than teaching and shaping up students career. Enroll today and take your knowledge to the next level. My training content is my proud and you will not be disappointed. I teach advance Excel, Excel VBA, MS Access, Access VBA, PowerQuery, M code in Powerquery, PowerPivot,DAX Formulas,Power BI and WebScraping using html libraries in VBA.

Course Certificate

Use your certificate to make a career change or to advance in your current career.

sample Tutorialspoint certificate

Our students work
with the Best

Feedbacks

S

Shailendra singh

good

Related Video Courses

View More

Annual Membership

Become a valued member of Tutorials Point and enjoy unlimited access to our vast library of top-rated Video Courses

Subscribe now
Annual Membership

Online Certifications

Master prominent technologies at full length and become a valued certified professional.

Explore Now
Online Certifications

Talk to us

1800-202-0515