Skip to content

Commit

Permalink
Javascript single test file execution (#1663)[deploy site]
Browse files Browse the repository at this point in the history
* 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 <12621691+harsha509@users.noreply.github.com> c2299d8
  • Loading branch information
selenium-ci committed Apr 8, 2024
1 parent a9b5a4e commit 339571d
Show file tree
Hide file tree
Showing 21 changed files with 49 additions and 33 deletions.
3 changes: 2 additions & 1 deletion documentation/_print/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,8 @@
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>
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>
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>
<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
<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>
<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
more maintainable. Read on to learn about how to put this code into context for your use case with
<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>
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
Expand Down
3 changes: 2 additions & 1 deletion documentation/webdriver/_print/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@
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>
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>
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>
<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
<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>
<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
more maintainable. Read on to learn about how to put this code into context for your use case with
<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>
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
Expand Down
3 changes: 2 additions & 1 deletion documentation/webdriver/getting_started/_print/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@
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>
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>
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>
<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
<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>
<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
more maintainable. Read on to learn about how to put this code into context for your use case with
<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>
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
Expand Down

0 comments on commit 339571d

Please sign in to comment.