|
40 | 40 | CSharp</button></li><li class=nav-item><button class=nav-link id=tabs-00-03-tab data-bs-toggle=tab data-bs-target=#tabs-00-03 role=tab data-td-tp-persist=ruby aria-controls=tabs-00-03 aria-selected=false>
|
41 | 41 | Ruby</button></li><li class=nav-item><button class=nav-link id=tabs-00-04-tab data-bs-toggle=tab data-bs-target=#tabs-00-04 role=tab data-td-tp-persist=javascript aria-controls=tabs-00-04 aria-selected=false>
|
42 | 42 | JavaScript</button></li><li class=nav-item><button class=nav-link id=tabs-00-05-tab data-bs-toggle=tab data-bs-target=#tabs-00-05 role=tab data-td-tp-persist=kotlin aria-controls=tabs-00-05 aria-selected=false>
|
43 |
| -Kotlin</button></li></ul><div class=tab-content id=tabs-0-content><div class="tab-body tab-pane fade show active" id=tabs-00-00 role=tabpanel aria-labelled-by=tabs-00-00-tab tabindex=0><p>View the minimum supported Java version <a href=https://github.com/SeleniumHQ/selenium/blob/trunk/.bazelrc#L13>here</a>.</p><p>Installation of Selenium libraries for Java is accomplished using a build tool.</p><h3 id=maven>Maven</h3><p>Specify the dependencies in the project’s <code>pom.xml</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-xml data-lang=xml><span style=display:flex><span> <span style=color:#204a87;font-weight:700><dependencies></span> |
44 |
| -</span></span><span style=display:flex><span> <span style=color:#204a87;font-weight:700><dependency></span> |
| 43 | +Kotlin</button></li></ul><div class=tab-content id=tabs-0-content><div class="tab-body tab-pane fade show active" id=tabs-00-00 role=tabpanel aria-labelled-by=tabs-00-00-tab tabindex=0><p>View the minimum supported Java version <a href=https://github.com/SeleniumHQ/selenium/blob/trunk/.bazelrc#L13>here</a>.</p><p>Installation of Selenium libraries for Java is accomplished using a build tool.</p><h3 id=maven>Maven</h3><p>Specify the dependencies in the project’s <code>pom.xml</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-xml data-lang=xml><span style=display:flex><span> <span style=color:#204a87;font-weight:700><dependency></span> |
45 | 44 | </span></span><span style=display:flex><span> <span style=color:#204a87;font-weight:700><groupId></span>org.seleniumhq.selenium<span style=color:#204a87;font-weight:700></groupId></span>
|
46 | 45 | </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>
|
47 |
| -</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></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#L29-L33 target=_blank><i class="fas fa-external-link-alt pl-2"></i> |
| 46 | +</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> |
| 47 | +</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> |
48 | 48 | <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.23.1'</span>
|
49 |
| -</span></span><span style=display:flex><span> <span style=color:#000>testImplementation</span> <span style=color:#4e9a06>'org.junit.jupiter:junit-jupiter-engine:5.10.3'</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> |
| 49 | +</span></span><span style=display:flex><span> <span style=color:#000>testImplementation</span> <span style=color:#4e9a06>'org.junit.jupiter:junit-jupiter-engine:5.11.0'</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> |
50 | 50 | <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
|
51 | 51 | 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
|
52 | 52 | </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>
|
|
74 | 74 | Press Enter and select the version.
|
75 | 75 | Now you can use the examples in the documentation related to C# with vscode.</p></div><div class="tab-body tab-pane fade" id=tabs-00-03 role=tabpanel aria-labelled-by=tabs-00-03-tab tabindex=0><p>You can see the minimum required version of Ruby for any given Selenium version
|
76 | 76 | on <a href=https://rubygems.org/gems/selenium-webdriver/>rubygems.org</a></p><p>Selenium can be installed two different ways.</p><h3 id=install-manually>Install manually</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>gem install selenium-webdriver
|
77 |
| -</span></span></code></pre></div><h3 id=add-to-projects-gemfile>Add to project’s gemfile</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-Gemfile data-lang=Gemfile><span style=display:flex><span><span style=color:#000>gem</span> <span style=color:#4e9a06>'selenium-devtools'</span><span style=color:#000;font-weight:700>,</span> <span style=color:#4e9a06>'= 0.126.0'</span></span></span></code></pre></div><div class="text-end pb-2"><a href=https://github.com/SeleniumHQ/seleniumhq.github.io/blob/trunk/examples/ruby/Gemfile#L10 target=_blank><i class="fas fa-external-link-alt pl-2"></i> |
| 77 | +</span></span></code></pre></div><h3 id=add-to-projects-gemfile>Add to project’s gemfile</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-Gemfile data-lang=Gemfile><span style=display:flex><span><span style=color:#000>gem</span> <span style=color:#4e9a06>'selenium-devtools'</span><span style=color:#000;font-weight:700>,</span> <span style=color:#4e9a06>'= 0.127.0'</span></span></span></code></pre></div><div class="text-end pb-2"><a href=https://github.com/SeleniumHQ/seleniumhq.github.io/blob/trunk/examples/ruby/Gemfile#L10 target=_blank><i class="fas fa-external-link-alt pl-2"></i> |
78 | 78 | <strong>View full example on GitHub</strong></a></div></div><div class="tab-body tab-pane fade" id=tabs-00-04 role=tabpanel aria-labelled-by=tabs-00-04-tab tabindex=0><p>You can find the minimum required version of Node for any given version of Selenium in the
|
79 | 79 | <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
|
80 | 80 | </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>"mocha"</span><span style=color:#a40000>:</span> <span style=color:#4e9a06>"10.7.3"</span></span></span></code></pre></div><div class="text-end 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>
|
|
0 commit comments