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

提供:yonewiki
(ページの作成:「Return to Language and Development Environment == '''Overview''' == [https://yonetech-studio.booth.pm/items/7702646 https://yonetech-studio.booth.pm/items/7702646] <nowiki> </nowiki>This is a free tool distributed on the BOOTH website above. <nowiki> </nowiki>It is a small utility that automatically updates the driver files required for browser automation. <nowiki> </nowiki>This tool was primarily developed to autom…」)
 
編集の要約なし
(同じ利用者による、間の8版が非表示)
4行目: 4行目:




<nowiki> </nowiki>This is a free tool distributed on the BOOTH website above.
 This is a free tool distributed on the BOOTH website above.




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




<nowiki> </nowiki>This tool was primarily developed to automatically update WebDrivers for SeleniumBasic.
 This tool was primarily developed to automatically update WebDrivers for SeleniumBasic.




*Edgeは以下のURLにて公開されているドライバをダウンロードします。
*Edge drivers are downloaded from the following URL:


h<span>tt</span>ps://msedgedriver.microsoft.com/バージョン番号/edgedriver_win64.zip
h<span>tt</span>ps://msedgedriver.microsoft.com/&lt;version&gt;/edgedriver_win64.zip




*Chromeは以下のURLにて公開されているドライバをダウンロードします。
*Chrome drivers are downloaded from the following URL:


h<span>tt</span>ps://storage.googleapis.com/chrome-for-testing-public/バージョン番号/win64/chromedriver-win64.zip
h<span>tt</span>ps://storage.googleapis.com/chrome-for-testing-public/&lt;version&gt;/win64/chromedriver-win64.zip




 規定値では以下のフォルダに保存されます。
 By default, the drivers are saved in the following folder:


C:\Users\ユーザID\AppData\Local\SeleniumBasic
C:\Users\&lt;UserID&gt;\AppData\Local\SeleniumBasic


*Edgeは
 
*Edge driver:


edgedriver.exe
edgedriver.exe


*Chromeは
*Chrome driver:


chromedriver.exe
chromedriver.exe


 という名前になります。


 The program retrieves the LOCALAPPDATA environment variable (C:\Users\&lt;UserID&gt;\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.


 環境変数のLOCALAPPDATAのディレクトリを取得する仕組みでC:\Users\ユーザID\AppData\Localというパスを取得し、その中にSeleniumBasicというフォルダがあれば、既存のフォルダに保存しようとします。フォルダがなければディレクトリを作成して、保存しようとします。


 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用は
* Edge: edgedriver_temp
* Chrome: chromedriver_temp


edgedriver_temp


*Chrome用は
 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):


chromedriver_temp


 ディレクトリにダウンロードしたzipファイルのコピーを保存します。
* Edge: edge_&lt;version&gt;
* Chrome: chrome_&lt;version&gt;




 ダウンロード済みであることを記録するために、このプログラムを保存しているディレクトリと同じディレクトリ(もしくは作業ディレクトリ)の中に
 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.


*Edge用は
 
 
edge_バージョン番号


*Chrome用は
== '''Optional Arguments''' ==
 
chrome_バージョン番号
 
 という1KBと評価される空のファイルを作成します。再度同じファイルをダウンロードしたい場合は、この記録用ファイルを消すことで再ダウンロードされます。ダウンロード済みとして記録されたファイルがある場合は再ダウンロードはしません。
 
 


== '''オプション引数''' ==
 You can specify optional arguments by adding them after the program name when launching the program or shortcut.


プログラムやショートカットリンクを右クリックして表示されるプログラム名の後ろに起動引数を記述することでオプション引数を利用することができます。
* --browser


*--browser
 Specifies which browser's driver to update.


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

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.


 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