Selenium.WebDriver.GeckoDriver.Win64
0.26.0.5-beta
Install Gecko Driver(Win64) for Selenium WebDriver into your Unit Test Project.
"geckodriver.exe" is copied to bin folder from package folder when the build process.
NuGet package restoring ready, and no need to commit "geckodriver.exe" binary into source code control repository.
/ Selenium WebDriver用 Gecko Driver(Win64) を単体テストプロジェクトに追加します。
"geckodriver.exe" はビルド時にパッケージフォルダから bin フォルダへコピーされます。
NuGet パッケージの復元に対応済み、"geckodriver.exe" をソース管理リポジトリに登録する必要はありません。
/ The MSBuild script that contained this package is free and unencumbered software released into the public domain.
/ "geckodriver.exe" is licensed under the Mozilla Public License Version 2.0.
See the version list below for details.
Install-Package Selenium.WebDriver.GeckoDriver.Win64 -Version 0.26.0.5-beta
dotnet add package Selenium.WebDriver.GeckoDriver.Win64 --version 0.26.0.5-beta
<PackageReference Include="Selenium.WebDriver.GeckoDriver.Win64" Version="0.26.0.5-beta" />
paket add Selenium.WebDriver.GeckoDriver.Win64 --version 0.26.0.5-beta
#r "nuget: Selenium.WebDriver.GeckoDriver.Win64, 0.26.0.5-beta"
NuGet package - Selenium WebDriver GeckoDriver
What's this?
This NuGet package install Gecko Driver for Selenium WebDriver into your Unit Test Project.
"geckodriver(.exe)" does not appear in Solution Explorer, but it is copied to the output folder from the package folder when the build process.
NuGet package restoring ready, and no need to commit "geckodriver(.exe)" binary into source code control repository.
How to install?
For example, at the package manager console on Visual Studio, enter the following command.
PM> Install-Package Selenium.WebDriver.GeckoDriver.Win64 -Version 0.26.0.5-beta -IncludePrerelease
Cross-platform building and publishing
By default - it depends on the OS running the build process
By default, the platform type of the web driver file copied to the output folder depends on the OS running the build process.
- When you build the project which references the NuGet package of geckodriver on 32bit Windows OS, win32 version of geckodriver will be copied to the output folder.
- When you build the project which references the NuGet package of geckodriver on 64bit Windows OS, win64 version of geckodriver will be copied to the output folder.
- When you build it on macOS, macOS x64 version of geckodriver will be copied to the output folder.
- When you build it on any Linux distributions, Linux x64 version of geckodriver will be copied to the output folder.
Method 1 - Specify "Runtime Identifier"
When you specify the "Runtime Identifier (RID)" explicitly, the platform type of the driver file is the same to the RID which you specified. (it doesn't depends on the which OS to use for build process.)
You can specify RID as a MSBuild property in a project file,
<PropertyGroup>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
</PropertyGroup>
or, as a command-line -r
option for dotnet build command.
> dotnet build -r:osx.10.12-x64
- When the RID that starts with "win" and contains "x86" is specified, win32 version of geckodriver will be copied to the output folder.
- When the RID that starts with "win" and contains "x64" is specified, win64 version of geckodriver will be copied to the output folder.
- When the RID that starts with "osx" is specified, macOS x64 version of geckodriver will be copied to the output folder.
- When the RID that starts with "linux" is specified, Linux x64 version of geckodriver will be copied to the output folder.
If you specify another pattern of RID like "ubuntu.18.04-x64", the platform type of the web driver file which will be copied to the output folder depends on the OS running the build process. (default behavior.)
Method 2 - Specify "GeckoDriverPlatform" msbuild property
You can control which platform version of geckodriver will be copied by specifying "GeckoDriverPlatform" MSBuild property.
"GeckoDriverPlatform" MSBuild property can take one of the following values:
- "win32"
- "win64"
- "mac64"
- "linux64"
You can specify "GeckoDriverPlatform" MSBuild property in a project file,
<PropertyGroup>
<GeckoDriverPlatform>win32</GeckoDriverPlatform>
</PropertyGroup>
or, command-line -p
option for dotnet build command.
> dotnet build -p:GeckoDriverPlatform=mac64
The specifying "GeckoDriverPlatform" MSBuild property is the highest priority method to control which platform version of geckodriver will be copied.
If you run the following command on Windows OS,
> dotnet build -r:ubuntu.18.04-x64 -p:GeckoDriverPlatform=mac64
The driver file of macOS x64 version will be copied to the output folder.
How to include the driver file into published files?
"geckodriver(.exe)" isn't included in published files on default configuration. This behavior is by design.
If you want to include "geckodriver(.exe)" into published files, please define _PUBLISH_GECKODRIVER
compilation symbol.
Another way, you can define PublishGeckoDriver
property with value is "true" in MSBuild file (.csproj, .vbproj, etc...) to publish the driver file instead of define compilation symbol.
<Project ...>
...
<PropertyGroup>
...
<PublishGeckoDriver>true</PublishGeckoDriver>
...
</PropertyGroup>
...
</Project>
You can also define PublishGeckoDriver
property from the command line -p
option for dotnet publish
command.
> dotnet publish -p:PublishGeckoDriver=true
Note
PublishGeckoDriver
MSBuild property always override the condition of define _PUBLISH_GECKODRIVER
compilation symbol or not. If you define PublishGeckoDriver
MSBuild property with false, then the driver file isn't included in publish files whenever define _PUBLISH_GECKODRIVER
compilation symbol or not.
Appendix
Where is geckodriver.exe saved to?
geckodriver(.exe) exists at
" {solution folder} /packages/Selenium.WebDriver.GeckoDriver. {ver} /driver/ {platform}"
folder.
{Solution folder}/
+-- packages/
| +-- Selenium.WebDriver.GeckoDriver.{version}/
| +-- driver/
| | +-- win32
| | +-- geckodriver.exe
| | +-- win64
| | +-- geckodriver.exe
| | +-- mac64
| | +-- geckodriver
| | +-- linux64
| | +-- geckodriver
| +-- build/
+-- {project folder}/
+-- bin/
+-- Debug/
| +-- geckodriver(.exe) (copy from above by build process)
+-- Release/
+-- geckodriver(.exe) (copy from above by build process)
And package installer configure MSBuild task such as .csproj to
copy geckodriver(.exe) into the output folder during the build process.
License
The build script (.targets file) in this NuGet package is licensed under The Unlicense.
The binary files of GeckoDriver are licensed under the Mozilla Public License.
NuGet package - Selenium WebDriver GeckoDriver
What's this?
This NuGet package install Gecko Driver for Selenium WebDriver into your Unit Test Project.
"geckodriver(.exe)" does not appear in Solution Explorer, but it is copied to the output folder from the package folder when the build process.
NuGet package restoring ready, and no need to commit "geckodriver(.exe)" binary into source code control repository.
How to install?
For example, at the package manager console on Visual Studio, enter the following command.
PM> Install-Package Selenium.WebDriver.GeckoDriver.Win64 -Version 0.26.0.5-beta -IncludePrerelease
Cross-platform building and publishing
By default - it depends on the OS running the build process
By default, the platform type of the web driver file copied to the output folder depends on the OS running the build process.
- When you build the project which references the NuGet package of geckodriver on 32bit Windows OS, win32 version of geckodriver will be copied to the output folder.
- When you build the project which references the NuGet package of geckodriver on 64bit Windows OS, win64 version of geckodriver will be copied to the output folder.
- When you build it on macOS, macOS x64 version of geckodriver will be copied to the output folder.
- When you build it on any Linux distributions, Linux x64 version of geckodriver will be copied to the output folder.
Method 1 - Specify "Runtime Identifier"
When you specify the "Runtime Identifier (RID)" explicitly, the platform type of the driver file is the same to the RID which you specified. (it doesn't depends on the which OS to use for build process.)
You can specify RID as a MSBuild property in a project file,
<PropertyGroup>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
</PropertyGroup>
or, as a command-line -r
option for dotnet build command.
> dotnet build -r:osx.10.12-x64
- When the RID that starts with "win" and contains "x86" is specified, win32 version of geckodriver will be copied to the output folder.
- When the RID that starts with "win" and contains "x64" is specified, win64 version of geckodriver will be copied to the output folder.
- When the RID that starts with "osx" is specified, macOS x64 version of geckodriver will be copied to the output folder.
- When the RID that starts with "linux" is specified, Linux x64 version of geckodriver will be copied to the output folder.
If you specify another pattern of RID like "ubuntu.18.04-x64", the platform type of the web driver file which will be copied to the output folder depends on the OS running the build process. (default behavior.)
Method 2 - Specify "GeckoDriverPlatform" msbuild property
You can control which platform version of geckodriver will be copied by specifying "GeckoDriverPlatform" MSBuild property.
"GeckoDriverPlatform" MSBuild property can take one of the following values:
- "win32"
- "win64"
- "mac64"
- "linux64"
You can specify "GeckoDriverPlatform" MSBuild property in a project file,
<PropertyGroup>
<GeckoDriverPlatform>win32</GeckoDriverPlatform>
</PropertyGroup>
or, command-line -p
option for dotnet build command.
> dotnet build -p:GeckoDriverPlatform=mac64
The specifying "GeckoDriverPlatform" MSBuild property is the highest priority method to control which platform version of geckodriver will be copied.
If you run the following command on Windows OS,
> dotnet build -r:ubuntu.18.04-x64 -p:GeckoDriverPlatform=mac64
The driver file of macOS x64 version will be copied to the output folder.
How to include the driver file into published files?
"geckodriver(.exe)" isn't included in published files on default configuration. This behavior is by design.
If you want to include "geckodriver(.exe)" into published files, please define _PUBLISH_GECKODRIVER
compilation symbol.
Another way, you can define PublishGeckoDriver
property with value is "true" in MSBuild file (.csproj, .vbproj, etc...) to publish the driver file instead of define compilation symbol.
<Project ...>
...
<PropertyGroup>
...
<PublishGeckoDriver>true</PublishGeckoDriver>
...
</PropertyGroup>
...
</Project>
You can also define PublishGeckoDriver
property from the command line -p
option for dotnet publish
command.
> dotnet publish -p:PublishGeckoDriver=true
Note
PublishGeckoDriver
MSBuild property always override the condition of define _PUBLISH_GECKODRIVER
compilation symbol or not. If you define PublishGeckoDriver
MSBuild property with false, then the driver file isn't included in publish files whenever define _PUBLISH_GECKODRIVER
compilation symbol or not.
Appendix
Where is geckodriver.exe saved to?
geckodriver(.exe) exists at
" {solution folder} /packages/Selenium.WebDriver.GeckoDriver. {ver} /driver/ {platform}"
folder.
{Solution folder}/
+-- packages/
| +-- Selenium.WebDriver.GeckoDriver.{version}/
| +-- driver/
| | +-- win32
| | +-- geckodriver.exe
| | +-- win64
| | +-- geckodriver.exe
| | +-- mac64
| | +-- geckodriver
| | +-- linux64
| | +-- geckodriver
| +-- build/
+-- {project folder}/
+-- bin/
+-- Debug/
| +-- geckodriver(.exe) (copy from above by build process)
+-- Release/
+-- geckodriver(.exe) (copy from above by build process)
And package installer configure MSBuild task such as .csproj to
copy geckodriver(.exe) into the output folder during the build process.
License
The build script (.targets file) in this NuGet package is licensed under The Unlicense.
The binary files of GeckoDriver are licensed under the Mozilla Public License.
Release Notes
v.0.26.0.5
- Fix: driver file was not copied sometimes.
Dependencies
This package has no dependencies.
Used By
NuGet packages (13)
Showing the top 5 NuGet packages that depend on Selenium.WebDriver.GeckoDriver.Win64:
Package | Downloads |
---|---|
Objectivity.Test.Automation.Common.NUnit
[DEPRECATED]
Use
Install-Package Ocaramba.Features
Install-Package Ocaramba.MsTest
Install-Package Ocaramba.NUnit
Install-Package Ocaramba.xUnit
instead
|
|
Objectivity.Test.Automation.Common.Features
[DEPRECATED]
Use
Install-Package Ocaramba.Features
Install-Package Ocaramba.MsTest
Install-Package Ocaramba.NUnit
Install-Package Ocaramba.xUnit
instead
|
|
Objectivity.Test.Automation.Common.MsTest
[DEPRECATED]
Use
Install-Package Ocaramba.Features
Install-Package Ocaramba.MsTest
Install-Package Ocaramba.NUnit
Install-Package Ocaramba.xUnit
instead
|
|
Objectivity.Test.Automation.Common.xUnit
[DEPRECATED]
Use
Install-Package Ocaramba.Features
Install-Package Ocaramba.MsTest
Install-Package Ocaramba.NUnit
Install-Package Ocaramba.xUnit
instead
|
|
MyCustomWebDriver
Note: The package will not be maintained anymore!
Library including WebDriverFactory class and other useful utilities and extensions.
|
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on Selenium.WebDriver.GeckoDriver.Win64:
Repository | Stars |
---|---|
openbullet/openbullet
The OpenBullet web testing application.
|
|
featurist/coypu
Intuitive, robust browser automation for .Net
|
Version History
Version | Downloads | Last updated |
---|---|---|
0.29.0 | 3,608 | 1/14/2021 |
0.28.0 | 38,191 | 11/4/2020 |
0.27.0 | 53,112 | 7/29/2020 |
0.26.0.5 | 2,004 | 7/15/2020 |
0.26.0.5-beta | 168 | 7/12/2020 |
0.26.0.3 | 3,279 | 6/28/2020 |
0.26.0.3-beta | 328 | 5/25/2020 |
0.26.0 | 136,744 | 10/13/2019 |
0.25.0 | 39,895 | 9/10/2019 |
0.24.0 | 162,603 | 1/29/2019 |
0.23.0 | 78,377 | 10/4/2018 |
0.22.0 | 8,713 | 9/16/2018 |
0.21.0 | 54,841 | 6/16/2018 |
0.20.1 | 50,714 | 4/8/2018 |
0.20.0 | 19,605 | 3/13/2018 |
0.19.1 | 44,952 | 11/1/2017 |
0.19.0 | 94,890 | 9/16/2017 |
0.18.0 | 24,565 | 7/11/2017 |
0.17.0 | 22,600 | 6/9/2017 |
0.16.1 | 12,268 | 4/26/2017 |
0.16.0 | 7,082 | 4/24/2017 |
0.15.0 | 8,726 | 3/8/2017 |
0.14.0 | 3,612 | 1/31/2017 |
0.13.0 | 8,145 | 1/6/2017 |
0.12.0 | 801 | 1/3/2017 |
0.11.1 | 4,222 | 11/25/2016 |