+ Reply to Thread
Results 1 to 5 of 5

Running MS Edge headless with Selenium VBA

  1. #1
    Forum Contributor Obsessed's Avatar
    Join Date
    05-22-2013
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 365
    Posts
    215

    Running MS Edge headless with Selenium VBA

    Hello All - I've been playing around with Selenium VBA recently, and automated some simple tasks to check stock status of a few items on a few different websites.

    I've been using Chrome without issue, except Chrome tends to hang up every so often and stops reporting data within a particular CSS Element, so figured it just didn't like this site. Switched to Edge. Edge has been working perfectly.

    The only thing I cannot get to work is the headless mode. I've read in passing that Edge supports headless with Selenium VBA. However, despite how I try it (tried several ways), it won't run headless.

    Any advice? I'm running Edge 86.0.622.43 (64-bit), the same version of MSEdgeDriver with Selenium, and O365.

    I've tried the following:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Want to show appreciation for the help you received from a member? Give them reps by clicking the bottom left of their post!

  2. #2
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Re: Running MS Edge headless with Selenium VBA

    IE and Edge does not support "Headless" mode in Selenium.

  3. #3
    Forum Contributor Obsessed's Avatar
    Join Date
    05-22-2013
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 365
    Posts
    215

    Re: Running MS Edge headless with Selenium VBA

    Interesting, thanks for the info.

    Do you know of a source for Selenium VBA documentation? I can't find any substantial documentation on the program or features/abilities as it relates to each browser.

  4. #4
    Registered User
    Join Date
    08-23-2011
    Location
    NYC
    MS-Off Ver
    Excel 2019/O365
    Posts
    60

    Lightbulb Re: Running MS Edge headless with Selenium VBA

    Around 8:03 www.youtube.com/watch?v=FoxWcvZzYVk

    After adding Selenium type library reference -> F2(or object browser icon or from view menu) ->Select Selenium library->Lists all the classes available in the library on the left->Select a class to see all the methods and properties available for that class on the right->Click on the method or property for a brief description towards bottom of screen


    This is for the VBA Selenium wrapper which someone was gracious enough to create. I do not believe there is much in the way of official documentation. VBA is not officially supported by the selenium project. I have found you need to have .net framework 3.5 enabled to work properly in win10 btw.


    Hope that helps.

  5. #5
    Forum Contributor
    Join Date
    02-25-2022
    Location
    Dallas, Texas
    MS-Off Ver
    Office 365
    Posts
    174

    Re: Running MS Edge headless with Selenium VBA

    If you look in the install directory (C:\Users\USER\AppData\Local\SeleniumBasic) you will see Selenium.chm. I've found it useful for some info.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Selenium PhantomJS
    By colddeck84 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-31-2018, 12:39 AM
  2. HTML scraping with a help of Selenium
    By ChipsSlave in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-31-2018, 12:12 AM
  3. Selenium loop through elements
    By colddeck84 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-14-2017, 11:44 AM
  4. Selenium Wrapper
    By colddeck84 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-13-2017, 04:22 PM
  5. VBA and Selenium
    By cabroncito29 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-05-2015, 10:46 AM
  6. Need Help with Nested Errors and Selenium
    By BYizz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-21-2014, 10:02 AM
  7. how to find the forward edge and aft edge for given coordinates
    By naderassaleh in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-08-2014, 02:16 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1