diff --git a/examples/javascript/README.md b/examples/javascript/README.md index 5bd5430d781..f8c5f5ba10e 100755 --- a/examples/javascript/README.md +++ b/examples/javascript/README.md @@ -26,4 +26,12 @@ npm install npm test ``` -> 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 \ No newline at end of file +> 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 + +# Execute a javascript test + +Use this command to run a JavaScript and follow the first script example + +``` +node example_script.spec.js +``` \ No newline at end of file diff --git a/website_and_docs/content/documentation/webdriver/getting_started/first_script.en.md b/website_and_docs/content/documentation/webdriver/getting_started/first_script.en.md index 5050532b57f..b7124efb122 100644 --- a/website_and_docs/content/documentation/webdriver/getting_started/first_script.en.md +++ b/website_and_docs/content/documentation/webdriver/getting_started/first_script.en.md @@ -242,7 +242,7 @@ See [Quitting Sessions]({{< ref "../drivers/#quitting-sessions" >}}). {{< gh-codeblock path="examples/ruby/README.md#L36" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/javascript/README.md#L36" >}} {{< /tab >}} {{< tab header="Kotlin" >}} {{< badge-code >}} diff --git a/website_and_docs/content/documentation/webdriver/getting_started/first_script.ja.md b/website_and_docs/content/documentation/webdriver/getting_started/first_script.ja.md index 94805696c79..ddbe4f02020 100644 --- a/website_and_docs/content/documentation/webdriver/getting_started/first_script.ja.md +++ b/website_and_docs/content/documentation/webdriver/getting_started/first_script.ja.md @@ -245,7 +245,7 @@ See [Quitting Sessions]({{< ref "../drivers/#quitting-sessions" >}}). {{< gh-codeblock path="examples/ruby/README.md#L36" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/javascript/README.md#L36" >}} {{< /tab >}} {{< tab header="Kotlin" >}} {{< badge-code >}} diff --git a/website_and_docs/content/documentation/webdriver/getting_started/first_script.pt-br.md b/website_and_docs/content/documentation/webdriver/getting_started/first_script.pt-br.md index c45599bd632..a200912702b 100644 --- a/website_and_docs/content/documentation/webdriver/getting_started/first_script.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/getting_started/first_script.pt-br.md @@ -244,7 +244,7 @@ See [Quitting Sessions]({{< ref "../drivers/#quitting-sessions" >}}). {{< gh-codeblock path="examples/ruby/README.md#L36" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/javascript/README.md#L36" >}} {{< /tab >}} {{< tab header="Kotlin" >}} {{< badge-code >}} diff --git a/website_and_docs/content/documentation/webdriver/getting_started/first_script.zh-cn.md b/website_and_docs/content/documentation/webdriver/getting_started/first_script.zh-cn.md index 98c4ebeabb4..a5fef6cc76d 100644 --- a/website_and_docs/content/documentation/webdriver/getting_started/first_script.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/getting_started/first_script.zh-cn.md @@ -257,7 +257,7 @@ See [Quitting Sessions]({{< ref "../drivers/#quitting-sessions" >}}). {{< gh-codeblock path="examples/ruby/README.md#L36" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/javascript/README.md#L36" >}} {{< /tab >}} {{< tab header="Kotlin" >}} {{< badge-code >}}