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

提供:yonewiki
編集の要約なし
 
(同じ利用者による、間の5版が非表示)
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)




58行目: 58行目:
 
 


== '''オプション引数''' ==
== '''Optional Arguments''' ==


プログラムやショートカットリンクを右クリックして表示されるプログラム名の後ろに起動引数を記述することでオプション引数を利用することができます。
 You can specify optional arguments by adding them after the program name when launching the program or shortcut.


*--browser
* --browser


更新したいドライバのブラウザについて指定します。edgeと指定するとedge用のドライバーが更新され、chromeと指定するとchrome用のドライバーが更新されます。省略されるとedgeと指定しているのと同じ動作になるので、edgeの場合は指定する必要はありませんが、明記することは自由です。
 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
vba_browser_driver_updater.exe --browser=chrome




*--driver-path
* --driver-path


ドライバーの保存パスを絶対パスで指定できます。省略すると%LOCALAPPDATA%\SeleniumBasic(具体的には以下のようなパス、C:\Users\ユーザID\AppData\Local\SeleniumBasic)に保存されます。SelenumBasic用のドライバとして使う以外の用途では、利用者が自由にパスを指定できた方が便利だから存在するオプションです。パスをダブルクォーテーションで囲えば、パスの中に空白が使われても問題が発生することなく指定できます。
 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"
vba_browser_driver_updater.exe --browser=chrome --driver-path="C:\WebDriver"




*--output-filename
* --output-filename


ドライバーの保存ファイル名を指定できます。省略するとEdge用にはedgedriver.exe、Chrome用にはchromedriver.exeという名前が使われます。省略時のファイル名はSelenium Basicが要求しているファイル名に合わせています。Edge用の配布時のドライバ名はmsedgedriver.exeなので、この名前を利用したい場合はオプションで指定する必要があります。ファイル名をダブルクォーテーションで囲えば、ファイル名の中に空白が使われても問題が発生することなく指定できます。
 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
vba_browser_driver_updater.exe --browser=chrome --driver-path="C:\WebDriver" --output-filename=msedgedriver.exe




*--no-wait
* --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
vba_browser_driver_updater.exe --browser=chrome --driver-path="C:\WebDriver" --output-filename=msedgedriver.exe --no-wait
103行目: 109行目:
 
 


== '''更新履歴''' ==
== '''Change Log''' ==
2025-11-27 Version1.0.0.0 新規リリース
2025-11-27 Version1.0.0.0 Initial release


 
 


== '''関連情報''' ==
== '''Related Information''' ==
*[[VBA Edge制御 導入]]
*[[VBA Edge制御 導入|VBA Edge Control – Setup]]
*[[VBA Edge制御 更新自動化コマンドプロンプトプログラム]]
*[[VBA Edge制御 更新自動化コマンドプロンプトプログラム|VBA Edge Control – Automated Update Command Prompt Program]]


 
 


[[メインページ#言語と開発環境|言語と開発環境]]へ戻る。
Return to [[メインページ#言語と開発環境|Language and Development Environment]]

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