Skip to content

Commit c6d76bd

Browse files
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.
1 parent 7c4416b commit c6d76bd

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

examples/javascript/README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,12 @@ npm install
2626
npm test
2727
```
2828

29-
> Please keep some patience - If you are doing it for the first time, it will take a little while to verify and download the browser drivers
29+
> Please keep some patience - If you are doing it for the first time, it will take a little while to verify and download the browser drivers
30+
31+
# Execute a javascript test
32+
33+
Use this command to run a ruby script and follow the first script example
34+
35+
```
36+
node example_script.spec.js
37+
```

package-lock.json

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website_and_docs/content/documentation/webdriver/getting_started/first_script.en.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ See [Quitting Sessions]({{< ref "../drivers/#quitting-sessions" >}}).
242242
{{< gh-codeblock path="examples/ruby/README.md#L36" >}}
243243
{{< /tab >}}
244244
{{< tab header="JavaScript" >}}
245-
{{< badge-code >}}
245+
{{< gh-codeblock path="examples/javascript/README.md#L36" >}}
246246
{{< /tab >}}
247247
{{< tab header="Kotlin" >}}
248248
{{< badge-code >}}

0 commit comments

Comments
 (0)