|
248 | 248 | </span></span><span style=display:flex><span> <span style=color:#204a87;font-weight:700><artifactId></span>selenium-java<span style=color:#204a87;font-weight:700></artifactId></span>
|
249 | 249 | </span></span><span style=display:flex><span> <span style=color:#204a87;font-weight:700><version></span>${selenium.version}<span style=color:#204a87;font-weight:700></version></span>
|
250 | 250 | </span></span><span style=display:flex><span> <span style=color:#204a87;font-weight:700></dependency></span></span></span></code></pre></div><div class="text-end pb-2"><a href=https://github.com/SeleniumHQ/seleniumhq.github.io/blob/trunk/examples/java/pom.xml#L30-L34 target=_blank><i class="fas fa-external-link-alt pl-2"></i>
|
251 |
| -<strong>View full example on GitHub</strong></a></div><h3 id=gradle>Gradle</h3><p>Specify the dependency in the project <code>build.gradle</code> file as <code>testImplementation</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-gradle data-lang=gradle><span style=display:flex><span> <span style=color:#000>testImplementation</span> <span style=color:#4e9a06>'org.seleniumhq.selenium:selenium-java:4.30.0'</span> |
| 251 | +<strong>View full example on GitHub</strong></a></div><h3 id=gradle>Gradle</h3><p>Specify the dependency in the project <code>build.gradle</code> file as <code>testImplementation</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-gradle data-lang=gradle><span style=display:flex><span> <span style=color:#000>testImplementation</span> <span style=color:#4e9a06>'org.seleniumhq.selenium:selenium-java:4.31.0'</span> |
252 | 252 | </span></span><span style=display:flex><span> <span style=color:#000>testImplementation</span> <span style=color:#4e9a06>'org.junit.jupiter:junit-jupiter-engine:5.12.1'</span></span></span></code></pre></div><div class="text-end pb-2"><a href=https://github.com/SeleniumHQ/seleniumhq.github.io/blob/trunk/examples/java/build.gradle#L13-L14 target=_blank><i class="fas fa-external-link-alt pl-2"></i>
|
253 | 253 | <strong>View full example on GitHub</strong></a></div></div><div class="tab-body tab-pane fade" id=tabs-00-01 role=tabpanel aria-labelled-by=tabs-00-01-tab tabindex=0><p>The minimum supported Python version for each Selenium version can be found
|
254 | 254 | in “Supported Python Versions” 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
|
255 | 255 | </span></span></code></pre></div><br><h3 id=download>Download</h3><p>Alternatively you can download the <a href=https://pypi.org/project/selenium/#files>PyPI Built Distribution</a>
|
256 | 256 | (selenium-x.x.x.-py3-none-any.whl) and install it using <em>pip</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>pip install selenium-x.x.x.-py3-none-any.whl
|
257 |
| -</span></span></code></pre></div><br><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.30.0</span></span></code></pre></div><div class="text-end 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> |
| 257 | +</span></span></code></pre></div><br><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.31.0</span></span></code></pre></div><div class="text-end 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> |
258 | 258 | <strong>View full example on GitHub</strong></a></div></div><div class="tab-body tab-pane fade" id=tabs-00-02 role=tabpanel aria-labelled-by=tabs-00-02-tab tabindex=0><p>A list of all supported frameworks for each version of Selenium
|
259 | 259 | 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
|
260 | 260 | </span></span></code></pre></div><br><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
|
261 |
| -</span></span></code></pre></div><br><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.30.0"</span> <span style=color:#204a87;font-weight:700>/></span></span></span></code></pre></div><div class="text-end 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> |
| 261 | +</span></span></code></pre></div><br><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.31.0"</span> <span style=color:#204a87;font-weight:700>/></span></span></span></code></pre></div><div class="text-end 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> |
262 | 262 | <strong>View full example on GitHub</strong></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.
|
263 | 263 | Also install the vscode extensions (Ctrl-Shift-X) for C# and NuGet.
|
264 | 264 | Follow the <a href="https://docs.microsoft.com/en-us/dotnet/core/tutorials/with-visual-studio-code?pivots=dotnet-5-0">instruction here</a>
|
|
0 commit comments