AutoItで使っているウェブドライバー WebDriver をAutoItで更新する
コード
Chromeとエッジを更新します
#include <wd_core.au3>
#include <wd_helper.au3>
$CHROME_DRIVER = 'C:\AutoIt3\chromedriver.exe'
$CHROME_InstallDir = 'C:\AutoIt3'
MsgBox(0, "Chrome","browser="&_WD_GetBrowserVersion('chrome')&" driver="&_WD_GetWebDriverVersion($CHROME_InstallDir,'chromedriver.exe'),10)
Local $bResult = _WD_UpdateDriver('Chrome',$CHROME_InstallDir)
If @error Then
Msgbox(4096,"error", $bResult&SetError(@error, @extended, ''),10)
Exit(1)
Else
Msgbox(4096,"success", $bResult,10)
EndIf
$CHROME_DRIVER = 'C:\AutoIt3\msedgedriver.exe'
$CHROME_InstallDir = 'C:\AutoIt3'
MsgBox(0, "MSEdge","browser="&_WD_GetBrowserVersion('MSEdge')&" driver="&_WD_GetWebDriverVersion($CHROME_InstallDir,'msedgedriver.exe'),10)
Local $bResult = _WD_UpdateDriver('MSEdge',$CHROME_InstallDir)
If @error Then
Msgbox(4096,"error", $bResult&SetError(@error, @extended, ''),10)
Exit(1)
Else
Msgbox(4096,"success", $bResult,10)
EndIf
Chrome for Testing availability (googlechromelabs.github.io)
ディスカッション
コメント一覧
まだ、コメントがありません