「vba browser driver updater(en)」の版間の差分

提供:yonewiki
編集の要約なし
編集の要約なし
 
4行目: 4行目:




 This is a free tool distributed on the BOOTH website above.
 This is a free tool distributed on the BOOTH website above.(Win x64 Console Application)





2025年11月29日 (土) 00:52時点における最新版

Return to Language and Development Environment

Overview

https://yonetech-studio.booth.pm/items/7702646


 This is a free tool distributed on the BOOTH website above.(Win x64 Console Application)


 It is a small utility that automatically updates the driver files required for browser automation.


 This tool was primarily developed to automatically update WebDrivers for SeleniumBasic.


  • Edge drivers are downloaded from the following URL:

https://msedgedriver.microsoft.com/<version>/edgedriver_win64.zip


  • Chrome drivers are downloaded from the following URL:

https://storage.googleapis.com/chrome-for-testing-public/<version>/win64/chromedriver-win64.zip


 By default, the drivers are saved in the following folder:

C:\Users\<UserID>\AppData\Local\SeleniumBasic


  • Edge driver:

edgedriver.exe

  • Chrome driver:

chromedriver.exe


 The program retrieves the LOCALAPPDATA environment variable (C:\Users\<UserID>\AppData\Local). If a folder named "SeleniumBasic" exists, the driver will be saved there. If the folder does not exist, it will be created automatically.


 Copies of the downloaded zip files are saved in the same directory where this program is located (or in the working directory) under the following folders:


  • Edge: edgedriver_temp
  • Chrome: chromedriver_temp


 To record that a driver has already been downloaded, empty files of approximately 1 KB are created in the same directory as this program (or in the working directory):


  • Edge: edge_<version>
  • Chrome: chrome_<version>


 Deleting these record files will allow the program to download the drivers again. If the record files exist, the driver will not be re-downloaded.

 

Optional Arguments

 You can specify optional arguments by adding them after the program name when launching the program or shortcut.

  • --browser

 Specifies which browser's driver to update.

- edge: updates the Edge driver (default) - chrome: updates the Chrome driver


Example:

vba_browser_driver_updater.exe --browser=chrome


  • --driver-path

 Specifies the absolute path where the driver will be saved. If omitted, the default is %LOCALAPPDATA%\SeleniumBasic(for example, C:\Users\<UserID>\AppData\Local\SeleniumBasic). For purposes other than SeleniumBasic, users can freely choose the save path. Paths with spaces can be safely specified using double quotes.


Example:

vba_browser_driver_updater.exe --browser=chrome --driver-path="C:\WebDriver"


  • --output-filename

 Specifies the filename for the saved driver. If omitted, Edge uses "edgedriver.exe" and Chrome uses "chromedriver.exe" by default. The default names match what SeleniumBasic expects. If you want to use the original distribution filename (e.g., "msedgedriver.exe" for Edge), you must specify it via this option. Double quotes can be used to safely handle filenames with spaces.


Example:

vba_browser_driver_updater.exe --browser=chrome --driver-path="C:\WebDriver" --output-filename=msedgedriver.exe


  • --no-wait

 Normally, this program opens a command prompt window and waits for a key press before closing. Specifying this option will cause the window to close automatically without any key input. Note that you will not be able to see what actions were performed, so you will not know whether an update occurred or not. This option does not require a value or an '=' sign.


Example:

vba_browser_driver_updater.exe --browser=chrome --driver-path="C:\WebDriver" --output-filename=msedgedriver.exe --no-wait

 

Change Log

2025-11-27 Version1.0.0.0 Initial release

 

Related Information

 

Return to Language and Development Environment