Skip to content

Commit 339571d

Browse files
committed
Javascript single test file execution (#1663)[deploy site]
* Javascript single test file execution In selenium documentation, javascript test file execution was missing. Therefore, I added that the command to run a test file for javascript in "Running Selenium File > JavaScript" section. * Small correction in examples>javascript>test>README.md * package-lock.json file has been excluded * similar changes are added to other translated files --------- Co-authored-by: Sri Harsha <[email protected]> c2299d8
1 parent a9b5a4e commit 339571d

File tree

21 files changed

+49
-33
lines changed

21 files changed

+49
-33
lines changed

documentation/_print/index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,8 @@
402402
Ruby</button></li><li class=nav-item><button class=nav-link id=tabs-17-04-tab data-bs-toggle=tab data-bs-target=#tabs-17-04 role=tab data-td-tp-persist=javascript aria-controls=tabs-17-04 aria-selected=false>
403403
JavaScript</button></li><li class=nav-item><button class=nav-link id=tabs-17-05-tab data-bs-toggle=tab data-bs-target=#tabs-17-05 role=tab data-td-tp-persist=kotlin aria-controls=tabs-17-05 aria-selected=false>
404404
Kotlin</button></li></ul><div class=tab-content id=tabs-17-content><div class="tab-body tab-pane fade show active" id=tabs-17-00 role=tabpanel aria-labelled-by=tabs-17-00-tab tabindex=17><p><a href=/documentation/about/contributing/#creating-examples><span class=selenium-badge-code data-bs-toggle=tooltip data-bs-placement=right title="This code example is missing. Examples are added to the examples directory; click for details in the contribution guide">Add Example</span></a></p></div><div class="tab-body tab-pane fade" id=tabs-17-01 role=tabpanel aria-labelled-by=tabs-17-01-tab tabindex=17><p><a href=/documentation/about/contributing/#creating-examples><span class=selenium-badge-code data-bs-toggle=tooltip data-bs-placement=right title="This code example is missing. Examples are added to the examples directory; click for details in the contribution guide">Add Example</span></a></p></div><div class="tab-body tab-pane fade" id=tabs-17-02 role=tabpanel aria-labelled-by=tabs-17-02-tab tabindex=17><p><a href=/documentation/about/contributing/#creating-examples><span class=selenium-badge-code data-bs-toggle=tooltip data-bs-placement=right title="This code example is missing. Examples are added to the examples directory; click for details in the contribution guide">Add Example</span></a></p></div><div class="tab-body tab-pane fade" id=tabs-17-03 role=tabpanel aria-labelled-by=tabs-17-03-tab tabindex=17><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-md data-lang=md><span style=display:flex><span>ruby example_script.rb</span></span></code></pre></div><div class="text-end pb-2"><a href=https://github.com/SeleniumHQ/seleniumhq.github.io/blob/trunk/examples/ruby/README.md#L36 target=_blank><i class="fas fa-external-link-alt pl-2"></i>
405-
<strong>View full example on GitHub</strong></a></div></div><div class="tab-body tab-pane fade" id=tabs-17-04 role=tabpanel aria-labelled-by=tabs-17-04-tab tabindex=17><p><a href=/documentation/about/contributing/#creating-examples><span class=selenium-badge-code data-bs-toggle=tooltip data-bs-placement=right title="This code example is missing. Examples are added to the examples directory; click for details in the contribution guide">Add Example</span></a></p></div><div class="tab-body tab-pane fade" id=tabs-17-05 role=tabpanel aria-labelled-by=tabs-17-05-tab tabindex=17><p><a href=/documentation/about/contributing/#creating-examples><span class=selenium-badge-code data-bs-toggle=tooltip data-bs-placement=right title="This code example is missing. Examples are added to the examples directory; click for details in the contribution guide">Add Example</span></a></p></div></div><h2 id=next-steps>Next Steps</h2><p>Most Selenium users execute many sessions and need to organize them to minimize duplication and keep the code
405+
<strong>View full example on GitHub</strong></a></div></div><div class="tab-body tab-pane fade" id=tabs-17-04 role=tabpanel aria-labelled-by=tabs-17-04-tab tabindex=17><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-md data-lang=md><span style=display:flex><span>node example_script.spec.js</span></span></code></pre></div><div class="text-end pb-2"><a href=https://github.com/SeleniumHQ/seleniumhq.github.io/blob/trunk/examples/javascript/README.md#L36 target=_blank><i class="fas fa-external-link-alt pl-2"></i>
406+
<strong>View full example on GitHub</strong></a></div></div><div class="tab-body tab-pane fade" id=tabs-17-05 role=tabpanel aria-labelled-by=tabs-17-05-tab tabindex=17><p><a href=/documentation/about/contributing/#creating-examples><span class=selenium-badge-code data-bs-toggle=tooltip data-bs-placement=right title="This code example is missing. Examples are added to the examples directory; click for details in the contribution guide">Add Example</span></a></p></div></div><h2 id=next-steps>Next Steps</h2><p>Most Selenium users execute many sessions and need to organize them to minimize duplication and keep the code
406407
more maintainable. Read on to learn about how to put this code into context for your use case with
407408
<a href=https://www.selenium.dev/documentation/webdriver/getting_started/using_selenium/>Using Selenium</a>.</p></div><div class=td-content style=page-break-before:always><h1 id=pg-23b7e1ca67e6c934ea40b738b1cbdf41>2.1.3 - Organizing and Executing Selenium Code</h1><div class=lead>Scaling Selenium execution with an IDE and a Test Runner library</div><div class="row justify-content-center my-1"><div class="alert alert-cyan -bg-selenium-cyan-20 col-10 ps-lg-5 mb-0 alert-dismissible fade show" role=alert><h2 class="alert-heading pb-3 text-center">Content Help</h2><div class=w-100><strong>Note:</strong>
408409
This section needs additional and/or updated content<br><br>This page is very incomplete and has placeholders for things that need to be added or expounded on.<br><br>Check our <a href=/documentation/about/contributing/>contribution guidelines</a> if you&rsquo;d like to help.</div><button type=button class=btn-close data-bs-dismiss=alert aria-label=Close></button></div></div><p>If you want to run more than a handful of one-off scripts, you need to

documentation/webdriver/_print/index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@
208208
Ruby</button></li><li class=nav-item><button class=nav-link id=tabs-17-04-tab data-bs-toggle=tab data-bs-target=#tabs-17-04 role=tab data-td-tp-persist=javascript aria-controls=tabs-17-04 aria-selected=false>
209209
JavaScript</button></li><li class=nav-item><button class=nav-link id=tabs-17-05-tab data-bs-toggle=tab data-bs-target=#tabs-17-05 role=tab data-td-tp-persist=kotlin aria-controls=tabs-17-05 aria-selected=false>
210210
Kotlin</button></li></ul><div class=tab-content id=tabs-17-content><div class="tab-body tab-pane fade show active" id=tabs-17-00 role=tabpanel aria-labelled-by=tabs-17-00-tab tabindex=17><p><a href=/documentation/about/contributing/#creating-examples><span class=selenium-badge-code data-bs-toggle=tooltip data-bs-placement=right title="This code example is missing. Examples are added to the examples directory; click for details in the contribution guide">Add Example</span></a></p></div><div class="tab-body tab-pane fade" id=tabs-17-01 role=tabpanel aria-labelled-by=tabs-17-01-tab tabindex=17><p><a href=/documentation/about/contributing/#creating-examples><span class=selenium-badge-code data-bs-toggle=tooltip data-bs-placement=right title="This code example is missing. Examples are added to the examples directory; click for details in the contribution guide">Add Example</span></a></p></div><div class="tab-body tab-pane fade" id=tabs-17-02 role=tabpanel aria-labelled-by=tabs-17-02-tab tabindex=17><p><a href=/documentation/about/contributing/#creating-examples><span class=selenium-badge-code data-bs-toggle=tooltip data-bs-placement=right title="This code example is missing. Examples are added to the examples directory; click for details in the contribution guide">Add Example</span></a></p></div><div class="tab-body tab-pane fade" id=tabs-17-03 role=tabpanel aria-labelled-by=tabs-17-03-tab tabindex=17><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-md data-lang=md><span style=display:flex><span>ruby example_script.rb</span></span></code></pre></div><div class="text-end pb-2"><a href=https://github.com/SeleniumHQ/seleniumhq.github.io/blob/trunk/examples/ruby/README.md#L36 target=_blank><i class="fas fa-external-link-alt pl-2"></i>
211-
<strong>View full example on GitHub</strong></a></div></div><div class="tab-body tab-pane fade" id=tabs-17-04 role=tabpanel aria-labelled-by=tabs-17-04-tab tabindex=17><p><a href=/documentation/about/contributing/#creating-examples><span class=selenium-badge-code data-bs-toggle=tooltip data-bs-placement=right title="This code example is missing. Examples are added to the examples directory; click for details in the contribution guide">Add Example</span></a></p></div><div class="tab-body tab-pane fade" id=tabs-17-05 role=tabpanel aria-labelled-by=tabs-17-05-tab tabindex=17><p><a href=/documentation/about/contributing/#creating-examples><span class=selenium-badge-code data-bs-toggle=tooltip data-bs-placement=right title="This code example is missing. Examples are added to the examples directory; click for details in the contribution guide">Add Example</span></a></p></div></div><h2 id=next-steps>Next Steps</h2><p>Most Selenium users execute many sessions and need to organize them to minimize duplication and keep the code
211+
<strong>View full example on GitHub</strong></a></div></div><div class="tab-body tab-pane fade" id=tabs-17-04 role=tabpanel aria-labelled-by=tabs-17-04-tab tabindex=17><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-md data-lang=md><span style=display:flex><span>node example_script.spec.js</span></span></code></pre></div><div class="text-end pb-2"><a href=https://github.com/SeleniumHQ/seleniumhq.github.io/blob/trunk/examples/javascript/README.md#L36 target=_blank><i class="fas fa-external-link-alt pl-2"></i>
212+
<strong>View full example on GitHub</strong></a></div></div><div class="tab-body tab-pane fade" id=tabs-17-05 role=tabpanel aria-labelled-by=tabs-17-05-tab tabindex=17><p><a href=/documentation/about/contributing/#creating-examples><span class=selenium-badge-code data-bs-toggle=tooltip data-bs-placement=right title="This code example is missing. Examples are added to the examples directory; click for details in the contribution guide">Add Example</span></a></p></div></div><h2 id=next-steps>Next Steps</h2><p>Most Selenium users execute many sessions and need to organize them to minimize duplication and keep the code
212213
more maintainable. Read on to learn about how to put this code into context for your use case with
213214
<a href=https://www.selenium.dev/documentation/webdriver/getting_started/using_selenium/>Using Selenium</a>.</p></div><div class=td-content style=page-break-before:always><h1 id=pg-23b7e1ca67e6c934ea40b738b1cbdf41>1.3 - Organizing and Executing Selenium Code</h1><div class=lead>Scaling Selenium execution with an IDE and a Test Runner library</div><div class="row justify-content-center my-1"><div class="alert alert-cyan -bg-selenium-cyan-20 col-10 ps-lg-5 mb-0 alert-dismissible fade show" role=alert><h2 class="alert-heading pb-3 text-center">Content Help</h2><div class=w-100><strong>Note:</strong>
214215
This section needs additional and/or updated content<br><br>This page is very incomplete and has placeholders for things that need to be added or expounded on.<br><br>Check our <a href=/documentation/about/contributing/>contribution guidelines</a> if you&rsquo;d like to help.</div><button type=button class=btn-close data-bs-dismiss=alert aria-label=Close></button></div></div><p>If you want to run more than a handful of one-off scripts, you need to

documentation/webdriver/getting_started/_print/index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@
203203
Ruby</button></li><li class=nav-item><button class=nav-link id=tabs-17-04-tab data-bs-toggle=tab data-bs-target=#tabs-17-04 role=tab data-td-tp-persist=javascript aria-controls=tabs-17-04 aria-selected=false>
204204
JavaScript</button></li><li class=nav-item><button class=nav-link id=tabs-17-05-tab data-bs-toggle=tab data-bs-target=#tabs-17-05 role=tab data-td-tp-persist=kotlin aria-controls=tabs-17-05 aria-selected=false>
205205
Kotlin</button></li></ul><div class=tab-content id=tabs-17-content><div class="tab-body tab-pane fade show active" id=tabs-17-00 role=tabpanel aria-labelled-by=tabs-17-00-tab tabindex=17><p><a href=/documentation/about/contributing/#creating-examples><span class=selenium-badge-code data-bs-toggle=tooltip data-bs-placement=right title="This code example is missing. Examples are added to the examples directory; click for details in the contribution guide">Add Example</span></a></p></div><div class="tab-body tab-pane fade" id=tabs-17-01 role=tabpanel aria-labelled-by=tabs-17-01-tab tabindex=17><p><a href=/documentation/about/contributing/#creating-examples><span class=selenium-badge-code data-bs-toggle=tooltip data-bs-placement=right title="This code example is missing. Examples are added to the examples directory; click for details in the contribution guide">Add Example</span></a></p></div><div class="tab-body tab-pane fade" id=tabs-17-02 role=tabpanel aria-labelled-by=tabs-17-02-tab tabindex=17><p><a href=/documentation/about/contributing/#creating-examples><span class=selenium-badge-code data-bs-toggle=tooltip data-bs-placement=right title="This code example is missing. Examples are added to the examples directory; click for details in the contribution guide">Add Example</span></a></p></div><div class="tab-body tab-pane fade" id=tabs-17-03 role=tabpanel aria-labelled-by=tabs-17-03-tab tabindex=17><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-md data-lang=md><span style=display:flex><span>ruby example_script.rb</span></span></code></pre></div><div class="text-end pb-2"><a href=https://github.com/SeleniumHQ/seleniumhq.github.io/blob/trunk/examples/ruby/README.md#L36 target=_blank><i class="fas fa-external-link-alt pl-2"></i>
206-
<strong>View full example on GitHub</strong></a></div></div><div class="tab-body tab-pane fade" id=tabs-17-04 role=tabpanel aria-labelled-by=tabs-17-04-tab tabindex=17><p><a href=/documentation/about/contributing/#creating-examples><span class=selenium-badge-code data-bs-toggle=tooltip data-bs-placement=right title="This code example is missing. Examples are added to the examples directory; click for details in the contribution guide">Add Example</span></a></p></div><div class="tab-body tab-pane fade" id=tabs-17-05 role=tabpanel aria-labelled-by=tabs-17-05-tab tabindex=17><p><a href=/documentation/about/contributing/#creating-examples><span class=selenium-badge-code data-bs-toggle=tooltip data-bs-placement=right title="This code example is missing. Examples are added to the examples directory; click for details in the contribution guide">Add Example</span></a></p></div></div><h2 id=next-steps>Next Steps</h2><p>Most Selenium users execute many sessions and need to organize them to minimize duplication and keep the code
206+
<strong>View full example on GitHub</strong></a></div></div><div class="tab-body tab-pane fade" id=tabs-17-04 role=tabpanel aria-labelled-by=tabs-17-04-tab tabindex=17><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-md data-lang=md><span style=display:flex><span>node example_script.spec.js</span></span></code></pre></div><div class="text-end pb-2"><a href=https://github.com/SeleniumHQ/seleniumhq.github.io/blob/trunk/examples/javascript/README.md#L36 target=_blank><i class="fas fa-external-link-alt pl-2"></i>
207+
<strong>View full example on GitHub</strong></a></div></div><div class="tab-body tab-pane fade" id=tabs-17-05 role=tabpanel aria-labelled-by=tabs-17-05-tab tabindex=17><p><a href=/documentation/about/contributing/#creating-examples><span class=selenium-badge-code data-bs-toggle=tooltip data-bs-placement=right title="This code example is missing. Examples are added to the examples directory; click for details in the contribution guide">Add Example</span></a></p></div></div><h2 id=next-steps>Next Steps</h2><p>Most Selenium users execute many sessions and need to organize them to minimize duplication and keep the code
207208
more maintainable. Read on to learn about how to put this code into context for your use case with
208209
<a href=https://www.selenium.dev/documentation/webdriver/getting_started/using_selenium/>Using Selenium</a>.</p></div><div class=td-content style=page-break-before:always><h1 id=pg-23b7e1ca67e6c934ea40b738b1cbdf41>3 - Organizing and Executing Selenium Code</h1><div class=lead>Scaling Selenium execution with an IDE and a Test Runner library</div><div class="row justify-content-center my-1"><div class="alert alert-cyan -bg-selenium-cyan-20 col-10 ps-lg-5 mb-0 alert-dismissible fade show" role=alert><h2 class="alert-heading pb-3 text-center">Content Help</h2><div class=w-100><strong>Note:</strong>
209210
This section needs additional and/or updated content<br><br>This page is very incomplete and has placeholders for things that need to be added or expounded on.<br><br>Check our <a href=/documentation/about/contributing/>contribution guidelines</a> if you&rsquo;d like to help.</div><button type=button class=btn-close data-bs-dismiss=alert aria-label=Close></button></div></div><p>If you want to run more than a handful of one-off scripts, you need to

0 commit comments

Comments
 (0)