

If you are using Chrome version 110: PM> Install-Package -Version 1.7700 If you are using Chrome version 111: PM> Install-Package -Version 1.6400 If you are using Chrome version 112: PM> Install-Package -Version 1.4900 How to install?įor example, at the package manager console on Visual Studio, enter the following command. However, due to compatibility and some offline scenarios, we intend to keep this package for the time being.

So now, you can run applications that use Selenium and manipulates web browsers without this package. Since Selenium WebDriver version 4.6 was released in November 2022 or later, it has contained "Selenium Manager", which will automatically download the most suitable version and platform WebDriver executable file. NuGet package restoring ready, and no need to commit "chromedriver(.exe)" binary into source code control repository. "chromedriver(.exe)" does not appear in Solution Explorer, but it is copied to the output folder from the package source folder when the build process.

This NuGet package installs Chrome Driver (Win32, macOS, macOS arm64, and Linu圆4) for Selenium WebDriver into your Unit Test Project.

Expand collapse popup #include #include #include "wd_3" #include "wd_3" #include #include #include #include Opt ( 'TrayIconDebug', 1 ) Local $sDesiredCapabilities, $iIndex, $sSession Local $nMsg, $lProcess = False Dim Const $maxOffset = 5 Change according to how far you want to search a bigger value means a slower comparison Local $aBrowsers =, _, _ ] Execute browser setup routine for user's browser selection Call ( $aBrowsers ) Local $aDebugLevel =, _, _ ] Set debug level $_WD_DEBUG = $aDebugLevel _WD _Startup ( ) If $_WD_ERROR_Success Then Exit - 1 EndIf $sSession = _WD _CreateSession ( $sDesiredCapabilities ) > THIS IS THE IMPORTANT PART _WD _Navigate ( $sSession, "" ) Sleep ( 333 ) ~ $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//*", Default, True) ~ $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//*", Default, True) $sElement = _WD _FindElement ( $sSession, $_WD_LOCATOR_ByXPath, , Default, True ) ~ $sElement = _WD_ExecuteScript($sSession, "document.getElementsByTagName('a') ") ~ _ArrayDisplay($sElement) if UBound ( $sElement ) > 0 Then For $i = 0 to UBound ( $sElement ) - 1 _WD _ElementAction ( $sSession, $sElement, "click" ) Sleep ( 333 ) Next EndIf Sleep ( 1000 ) > END OF IMPORTANT PART ~_WD_DeleteSession($sSession) ~_WD_Shutdown() ~Exit Func SetupGecko ( ) _WD _Option ( 'Driver', 'geckodriver.NuGet package - Selenium WebDriver ChromeDriver
