|
251 | 251 | in <code>Supported Python Versions</code> on <a href=https://pypi.org/project/selenium/>PyPi</a></p><p>There are a couple different ways to install Selenium.</p><h3 id=pip>Pip</h3><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-shell data-lang=shell><span style=display:flex><span>pip install selenium
|
252 | 252 | </span></span></code></pre></div><h3 id=download>Download</h3><p>Alternatively you can download the <a href=https://pypi.org/project/selenium/#files>PyPI source archive</a>
|
253 | 253 | (selenium-x.x.x.tar.gz) and install it using <em>setup.py</em>:</p><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-shell data-lang=shell><span style=display:flex><span>python setup.py install
|
254 |
| -</span></span></code></pre></div><h3 id=require-in-project>Require in project</h3><p>To use it in a project, add it to the <code>requirements.txt</code> file:</p><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-txt data-lang=txt><span style=display:flex><span>selenium==4.8.0</span></span></code></pre></div><div class="text-right pb-2"><a href=https://github.com/SeleniumHQ/seleniumhq.github.io/blob/trunk/examples/python/requirements.txt#L1 target=_blank><i class="fas fa-external-link-alt pl-2"></i> |
| 254 | +</span></span></code></pre></div><h3 id=require-in-project>Require in project</h3><p>To use it in a project, add it to the <code>requirements.txt</code> file:</p><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-txt data-lang=txt><span style=display:flex><span>selenium==4.8.2</span></span></code></pre></div><div class="text-right pb-2"><a href=https://github.com/SeleniumHQ/seleniumhq.github.io/blob/trunk/examples/python/requirements.txt#L1 target=_blank><i class="fas fa-external-link-alt pl-2"></i> |
255 | 255 | <i class="fas fa-external-link" aria-hidden=true></i>
|
256 | 256 | <small>Check code on GitHub</small></a></div></div><div class="tab-body tab-pane fade" id=tabs-0-2 role=tabpanel aria-labelled-by=tabs-0-2-tab><p>A list of all supported frameworks for each version of Selenium
|
257 | 257 | is available on <a href=https://www.nuget.org/packages/Selenium.WebDriver>Nuget</a></p><p>There are a few options for installing Selenium.</p><h3 id=packet-manager>Packet Manager</h3><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-shell data-lang=shell><span style=display:flex><span>Install-Package Selenium.WebDriver
|
258 | 258 | </span></span></code></pre></div><h3 id=net-cli>.NET CLI</h3><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-shell data-lang=shell><span style=display:flex><span>dotnet add package Selenium.WebDriver
|
259 |
| -</span></span></code></pre></div><h3 id=csproj>CSProj</h3><p>in the project’s <code>csproj</code> file, specify the dependency as a <code>PackageReference</code> in <code>ItemGroup</code>:</p><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-csproj data-lang=csproj><span style=display:flex><span> <span style=color:#204a87;font-weight:700><PackageReference</span> <span style=color:#c4a000>Include=</span><span style=color:#4e9a06>"Selenium.WebDriver"</span> <span style=color:#c4a000>Version=</span><span style=color:#4e9a06>"4.8.0"</span> <span style=color:#204a87;font-weight:700>/></span></span></span></code></pre></div><div class="text-right pb-2"><a href=https://github.com/SeleniumHQ/seleniumhq.github.io/blob/trunk/examples/dotnet/SeleniumDocs/SeleniumDocs.csproj#L14 target=_blank><i class="fas fa-external-link-alt pl-2"></i> |
| 259 | +</span></span></code></pre></div><h3 id=csproj>CSProj</h3><p>in the project’s <code>csproj</code> file, specify the dependency as a <code>PackageReference</code> in <code>ItemGroup</code>:</p><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-csproj data-lang=csproj><span style=display:flex><span> <span style=color:#204a87;font-weight:700><PackageReference</span> <span style=color:#c4a000>Include=</span><span style=color:#4e9a06>"Selenium.WebDriver"</span> <span style=color:#c4a000>Version=</span><span style=color:#4e9a06>"4.8.1"</span> <span style=color:#204a87;font-weight:700>/></span></span></span></code></pre></div><div class="text-right pb-2"><a href=https://github.com/SeleniumHQ/seleniumhq.github.io/blob/trunk/examples/dotnet/SeleniumDocs/SeleniumDocs.csproj#L14 target=_blank><i class="fas fa-external-link-alt pl-2"></i> |
260 | 260 | <i class="fas fa-external-link" aria-hidden=true></i>
|
261 | 261 | <small>Check code on GitHub</small></a></div><h3 id=additional-considerations>Additional considerations</h3><p>Further items of note for using Visual Studio Code (vscode) and C#</p><p>Install the compatible .NET SDK as per the section above.
|
262 | 262 | Also install the vscode extensions (Ctrl-Shift-X) for C# and NuGet.
|
|
280 | 280 | <i class="fas fa-external-link" aria-hidden=true></i>
|
281 | 281 | <small>Check code on GitHub</small></a></div></div><div class="tab-body tab-pane fade" id=tabs-0-4 role=tabpanel aria-labelled-by=tabs-0-4-tab><p>You can find the minimum required version of Node for any given version of Selenium in the
|
282 | 282 | <code>Node Support Policy</code> section on <a href=https://www.npmjs.com/package/selenium-webdriver>npmjs</a></p><p>Selenium is typically installed using npm.</p><h3 id=install-locally>Install locally</h3><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-shell data-lang=shell><span style=display:flex><span>npm install selenium-webdriver
|
283 |
| -</span></span></code></pre></div><h3 id=add-to-project>Add to project</h3><p>In your project’s <code>package.json</code>, add requirement to <code>dependencies</code>:</p><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-json data-lang=json><span style=display:flex><span> <span style=color:#4e9a06>"selenium-webdriver"</span><span style=color:#a40000>:</span> <span style=color:#4e9a06>"^4.8.0"</span></span></span></code></pre></div><div class="text-right pb-2"><a href=https://github.com/SeleniumHQ/seleniumhq.github.io/blob/trunk/examples/javascript/package.json#L14 target=_blank><i class="fas fa-external-link-alt pl-2"></i> |
| 283 | +</span></span></code></pre></div><h3 id=add-to-project>Add to project</h3><p>In your project’s <code>package.json</code>, add requirement to <code>dependencies</code>:</p><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-json data-lang=json><span style=display:flex><span> <span style=color:#4e9a06>"selenium-webdriver"</span><span style=color:#a40000>:</span> <span style=color:#4e9a06>"^4.8.1"</span></span></span></code></pre></div><div class="text-right pb-2"><a href=https://github.com/SeleniumHQ/seleniumhq.github.io/blob/trunk/examples/javascript/package.json#L14 target=_blank><i class="fas fa-external-link-alt pl-2"></i> |
284 | 284 | <i class="fas fa-external-link" aria-hidden=true></i>
|
285 | 285 | <small>Check code on GitHub</small></a></div></div><div class="tab-body tab-pane fade" id=tabs-0-5 role=tabpanel aria-labelled-by=tabs-0-5-tab>Use the Java bindings for Kotlin.</div></div><h2 id=next-step>Next Step</h2><p><a href=/documentation/webdriver/getting_started/install_drivers/>Install the browser drivers</a></p></div><div class=td-content style=page-break-before:always><h1 id=pg-a10595dd599468370802ce95ea02456c>2.1.2 - Install browser drivers</h1><div class=lead>Setting up your system to allow a browser to be automated.</div><p>Through WebDriver, Selenium supports all major browsers on the market
|
286 | 286 | such as Chrome/Chromium, Firefox, Internet Explorer, Edge, and Safari.
|
|
12368 | 12368 | <label><a href=https://github.com/corevo>@corevo</a></label>
|
12369 | 12369 | <span class=contributions>2445 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/4707505?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
|
12370 | 12370 | <label><a href=https://github.com/toddtarsi>@toddtarsi</a></label>
|
12371 |
| -<span class=contributions>153 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/11513917?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle> |
| 12371 | +<span class=contributions>157 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/11513917?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle> |
12372 | 12372 | <label><a href=https://github.com/baimao8437>@baimao8437</a></label>
|
12373 | 12373 | <span class=contributions>88 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/58857646?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
|
12374 | 12374 | <label><a href=https://github.com/coinzdude>@coinzdude</a></label>
|
|
12644 | 12644 | <label><a href=https://github.com/diemol>@diemol</a></label>
|
12645 | 12645 | <span class=contributions>613 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/12621691?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
|
12646 | 12646 | <label><a href=https://github.com/harsha509>@harsha509</a></label>
|
12647 |
| -<span class=contributions>564 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/3331063?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle> |
| 12647 | +<span class=contributions>568 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/3331063?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle> |
12648 | 12648 | <label><a href=https://github.com/selenium-ci>@selenium-ci</a></label>
|
12649 | 12649 | <span class=contributions>323 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/777185?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
|
12650 | 12650 | <label><a href=https://github.com/titusfortner>@titusfortner</a></label>
|
|
0 commit comments