Skip to content

Commit 2fa095f

Browse files
committed
[JS] Add links to code sample [deploy site]
1 parent b1754a3 commit 2fa095f

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

examples/javascript/test/getting_started/firstScript.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ suite(function(env) {
1010
driver = await new Builder().forBrowser('chrome').build();
1111
});
1212

13-
after(() => driver.quit());
13+
after(async () => await driver.quit());
1414

1515
it('First Selenium script', async function() {
1616
await driver.get('https://www.selenium.dev/selenium/web/web-form.html');

website_and_docs/content/documentation/webdriver/actions_api/keyboard.en.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ primarily this gets used when needing to type multiple characters in the middle
134134
{{< gh-codeblock path="examples/ruby/spec/actions_api/keys_spec.rb#L51-L54" >}}
135135
{{< /tab >}}
136136
{{< tab header="JavaScript" >}}
137-
{{< badge-code >}}
137+
{{< badge-version version="4.5.0" >}}
138+
{{< gh-codeblock path="examples/javascript/test/actionsApi/keysTest.spec.js#L61-L65" >}}
138139
{{< /tab >}}
139140
{{< tab header="Kotlin" >}}
140141
{{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/actions_api/KeysTest.kt#L60-L63" >}}

website_and_docs/content/documentation/webdriver/actions_api/keyboard.ja.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ primarily this gets used when needing to type multiple characters in the middle
134134
{{< gh-codeblock path="examples/ruby/spec/actions_api/keys_spec.rb#L51-L54" >}}
135135
{{< /tab >}}
136136
{{< tab header="JavaScript" >}}
137-
{{< badge-code >}}
137+
{{< badge-version version="4.5.0" >}}
138+
{{< gh-codeblock path="examples/javascript/test/actionsApi/keysTest.spec.js#L61-L65" >}}
138139
{{< /tab >}}
139140
{{< tab header="Kotlin" >}}
140141
{{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/actions_api/KeysTest.kt#L60-L63" >}}

website_and_docs/content/documentation/webdriver/actions_api/keyboard.pt-br.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ primarily this gets used when needing to type multiple characters in the middle
134134
{{< gh-codeblock path="examples/ruby/spec/actions_api/keys_spec.rb#L51-L54" >}}
135135
{{< /tab >}}
136136
{{< tab header="JavaScript" >}}
137-
{{< badge-code >}}
137+
{{< badge-version version="4.5.0" >}}
138+
{{< gh-codeblock path="examples/javascript/test/actionsApi/keysTest.spec.js#L61-L65" >}}
138139
{{< /tab >}}
139140
{{< tab header="Kotlin" >}}
140141
{{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/actions_api/KeysTest.kt#L60-L63" >}}

website_and_docs/content/documentation/webdriver/actions_api/keyboard.zh-cn.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ primarily this gets used when needing to type multiple characters in the middle
134134
{{< gh-codeblock path="examples/ruby/spec/actions_api/keys_spec.rb#L51-L54" >}}
135135
{{< /tab >}}
136136
{{< tab header="JavaScript" >}}
137-
{{< badge-code >}}
137+
{{< badge-version version="4.5.0" >}}
138+
{{< gh-codeblock path="examples/javascript/test/actionsApi/keysTest.spec.js#L61-L65" >}}
138139
{{< /tab >}}
139140
{{< tab header="Kotlin" >}}
140141
{{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/actions_api/KeysTest.kt#L60-L63" >}}

0 commit comments

Comments
 (0)