Skip to content

Commit 40b5813

Browse files
committed
Linking examples on landing docs page
[deploy site]
1 parent d52902f commit 40b5813

File tree

4 files changed

+25
-105
lines changed

4 files changed

+25
-105
lines changed

website_and_docs/content/documentation/_index.en.md

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -41,37 +41,14 @@ a browser. You can find a more comprehensive example in [Writing your first Sele
4141
{{< tab header="CSharp" disableCodeBlock=true >}}
4242
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Hello/HelloSelenium.cs" >}}
4343
{{< /tab >}}
44-
{{< tab header="Ruby" >}}
45-
require 'selenium-webdriver'
46-
47-
driver = Selenium::WebDriver.for :chrome
48-
49-
driver.get 'https://selenium.dev'
50-
51-
driver.quit
44+
{{< tab header="Ruby" disableCodeBlock=true >}}
45+
{{< gh-codeblock path="/examples/ruby/spec/hello/hello_selenium_spec.rb" >}}
5246
{{< /tab >}}
53-
{{< tab header="JavaScript" >}}
54-
const {Builder, By, Key, until} = require('selenium-webdriver');
55-
56-
(async function helloSelenium() {
57-
let driver = await new Builder().forBrowser('chrome').build();
58-
59-
await driver.get('https://selenium.dev');
60-
61-
await driver.quit();
62-
})();
47+
{{< tab header="JavaScript" disableCodeBlock=true >}}
48+
{{< gh-codeblock path="/examples/javascript/hello/helloSelenium.js" >}}
6349
{{< /tab >}}
64-
{{< tab header="Kotlin" >}}
65-
import org.openqa.selenium.By
66-
import org.openqa.selenium.chrome.ChromeDriver
67-
68-
fun main() {
69-
val driver = ChromeDriver()
70-
71-
driver.get("https://selenium.dev")
72-
73-
driver.quit()
74-
}
50+
{{< tab header="Kotlin" disableCodeBlock=true >}}
51+
{{< gh-codeblock path="/examples/kotlin/src/test/kotlin/dev/selenium/hello/HelloSelenium.kt" >}}
7552
{{< /tab >}}
7653
{{< /tabpane >}}
7754

website_and_docs/content/documentation/_index.ja.md

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -28,37 +28,14 @@ Seleniumの中核は[WebDriver]({{< ref "/webdriver.md" >}})であり、様々
2828
{{< tab header="CSharp" disableCodeBlock=true >}}
2929
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Hello/HelloSelenium.cs" >}}
3030
{{< /tab >}}
31-
{{< tab header="Ruby" >}}
32-
require 'selenium-webdriver'
33-
34-
driver = Selenium::WebDriver.for :chrome
35-
36-
driver.get 'https://selenium.dev'
37-
38-
driver.quit
31+
{{< tab header="Ruby" disableCodeBlock=true >}}
32+
{{< gh-codeblock path="/examples/ruby/spec/hello/hello_selenium_spec.rb" >}}
3933
{{< /tab >}}
40-
{{< tab header="JavaScript" >}}
41-
const {Builder, By, Key, until} = require('selenium-webdriver');
42-
43-
(async function helloSelenium() {
44-
let driver = await new Builder().forBrowser('chrome').build();
45-
46-
await driver.get('https://selenium.dev');
47-
48-
await driver.quit();
49-
})();
34+
{{< tab header="JavaScript" disableCodeBlock=true >}}
35+
{{< gh-codeblock path="/examples/javascript/hello/helloSelenium.js" >}}
5036
{{< /tab >}}
51-
{{< tab header="Kotlin" >}}
52-
import org.openqa.selenium.By
53-
import org.openqa.selenium.chrome.ChromeDriver
54-
55-
fun main() {
56-
val driver = ChromeDriver()
57-
58-
driver.get("https://selenium.dev")
59-
60-
driver.quit()
61-
}
37+
{{< tab header="Kotlin" disableCodeBlock=true >}}
38+
{{< gh-codeblock path="/examples/kotlin/src/test/kotlin/dev/selenium/hello/HelloSelenium.kt" >}}
6239
{{< /tab >}}
6340
{{< /tabpane >}}
6441

website_and_docs/content/documentation/_index.pt-br.md

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -48,25 +48,14 @@ navegadores. Aqui está uma das instruções mais simples que você pode fazer:
4848
{{< tab header="CSharp" disableCodeBlock=true >}}
4949
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Hello/HelloSelenium.cs" >}}
5050
{{< /tab >}}
51-
{{< tab header="Ruby" >}}
52-
require 'selenium-webdriver'
53-
54-
driver = Selenium::WebDriver.for :chrome
55-
56-
driver.get 'https://selenium.dev'
57-
58-
driver.quit
51+
{{< tab header="Ruby" disableCodeBlock=true >}}
52+
{{< gh-codeblock path="/examples/ruby/spec/hello/hello_selenium_spec.rb" >}}
5953
{{< /tab >}}
60-
{{< tab header="JavaScript" >}}
61-
const {Builder, By, Key, until} = require('selenium-webdriver');
62-
63-
(async function helloSelenium() {
64-
let driver = await new Builder().forBrowser('chrome').build();
65-
66-
await driver.get('https://selenium.dev');
67-
68-
await driver.quit();
69-
})();
54+
{{< tab header="JavaScript" disableCodeBlock=true >}}
55+
{{< gh-codeblock path="/examples/javascript/hello/helloSelenium.js" >}}
56+
{{< /tab >}}
57+
{{< tab header="Kotlin" disableCodeBlock=true >}}
58+
{{< gh-codeblock path="/examples/kotlin/src/test/kotlin/dev/selenium/hello/HelloSelenium.kt" >}}
7059
{{< /tab >}}
7160
{{< tab header="Kotlin" >}}
7261
import org.openqa.selenium.By

website_and_docs/content/documentation/_index.zh-cn.md

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -33,37 +33,14 @@ Selenium 的核心是 [WebDriver]({{< ref "/webdriver.md" >}}),这是一个编
3333
{{< tab header="CSharp" disableCodeBlock=true >}}
3434
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Hello/HelloSelenium.cs" >}}
3535
{{< /tab >}}
36-
{{< tab header="Ruby" >}}
37-
require 'selenium-webdriver'
38-
39-
driver = Selenium::WebDriver.for :chrome
40-
41-
driver.get 'https://selenium.dev'
42-
43-
driver.quit
36+
{{< tab header="Ruby" disableCodeBlock=true >}}
37+
{{< gh-codeblock path="/examples/ruby/spec/hello/hello_selenium_spec.rb" >}}
4438
{{< /tab >}}
45-
{{< tab header="JavaScript" >}}
46-
const {Builder, By, Key, until} = require('selenium-webdriver');
47-
48-
(async function helloSelenium() {
49-
let driver = await new Builder().forBrowser('chrome').build();
50-
51-
await driver.get('https://selenium.dev');
52-
53-
await driver.quit();
54-
})();
39+
{{< tab header="JavaScript" disableCodeBlock=true >}}
40+
{{< gh-codeblock path="/examples/javascript/hello/helloSelenium.js" >}}
5541
{{< /tab >}}
56-
{{< tab header="Kotlin" >}}
57-
import org.openqa.selenium.By
58-
import org.openqa.selenium.chrome.ChromeDriver
59-
60-
fun main() {
61-
val driver = ChromeDriver()
62-
63-
driver.get("https://selenium.dev")
64-
65-
driver.quit()
66-
}
42+
{{< tab header="Kotlin" disableCodeBlock=true >}}
43+
{{< gh-codeblock path="/examples/kotlin/src/test/kotlin/dev/selenium/hello/HelloSelenium.kt" >}}
6744
{{< /tab >}}
6845
{{< /tabpane >}}
6946

0 commit comments

Comments
 (0)