Skip to content

Commit 4ec6b76

Browse files
committed
split up content from open browser page into browser specific pages
1 parent 6fac67a commit 4ec6b76

36 files changed

+1067
-1676
lines changed

website_and_docs/content/documentation/webdriver/browsers/_index.en.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: "Supported Browsers"
33
linkTitle: "Browsers"
44
weight: 4
55
aliases: [
6+
"/documentation/en/getting_started/open_browser/",
67
"/documentation/en/capabilities/",
78
"/documentation/en/driver_idiosyncrasies/",
89
"/documentation/en/driver_idiosyncrasies/driver_specific_capabilities/",

website_and_docs/content/documentation/webdriver/browsers/_index.ja.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: "Supported Browsers"
33
linkTitle: "Browsers"
44
weight: 4
55
aliases: [
6+
"/documentation/ja/getting_started/open_browser/",
67
"/documentation/ja/capabilities/",
78
"/documentation/ja/driver_idiosyncrasies/",
89
"/documentation/ja/driver_idiosyncrasies/driver_specific_capabilities/",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: "Supported Browsers"
33
linkTitle: "Browsers"
44
weight: 4
55
aliases: [
6+
"/documentation/pt-br/getting_started/open_browser/",
67
"/documentation/pt-br/capabilities/",
78
"/documentation/pt-br/driver_idiosyncrasies/",
89
"/documentation/pt-br/driver_idiosyncrasies/driver_specific_capabilities/",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: "Supported Browsers"
33
linkTitle: "Browsers"
44
weight: 4
55
aliases: [
6+
"/documentation/zh-cn/getting_started/open_browser/",
67
"/documentation/zh-cn/capabilities/",
78
"/documentation/zh-cn/driver_idiosyncrasies/",
89
"/documentation/zh-cn/driver_idiosyncrasies/driver_specific_capabilities/",

website_and_docs/content/documentation/webdriver/browsers/chrome.en.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,53 @@ aliases: [
99
]
1010
---
1111

12+
By default, Selenium 4 is compatible with Chrome v75 and greater. Note that the version of
13+
the Chrome browser and the version of chromedriver must match the major version.
14+
1215
## Options
1316

1417
Capabilities common to all browsers are described on the [Options page]({{< ref "../drivers/options.md" >}}).
1518

1619
Capabilities unique to Chrome can be found at Google's page for [Capabilities & ChromeOptions](https://chromedriver.chromium.org/capabilities)
1720

21+
Starting a Chrome session with basic defined options looks like this:
22+
23+
{{< tabpane langEqualsHeader=true code=false >}}
24+
{{< tab header="Java" code=true github="SeleniumHQ/seleniumhq.github.io/blob/dev/examples/java/src/test/java/dev/selenium/getting_started/OpenBrowserTest.java#L27-L30" >}}
25+
ChromeOptions options = new ChromeOptions();
26+
driver = new ChromeDriver(options);
27+
28+
driver.quit();
29+
{{< /tab >}}
30+
{{< tab header="Python" code=true github="SeleniumHQ/seleniumhq.github.io/blob/dev/examples/python/tests/getting_started/test_open_browser.py#L10-L13" >}}
31+
options = ChromeOptions()
32+
driver = webdriver.Chrome(options=options)
33+
34+
driver.quit()
35+
{{< /tab >}}
36+
{{< tab header="CSharp" code=true github="SeleniumHQ/seleniumhq.github.io/blob/dev/examples/dotnet/SeleniumDocs/GettingStarted/OpenBrowserTest.cs#L17-L20" >}}
37+
var options = new ChromeOptions();
38+
var driver = new ChromeDriver(options);
39+
40+
driver.Quit();
41+
{{< /tab >}}
42+
{{< tab header="Ruby" code=true github="SeleniumHQ/seleniumhq.github.io/blob/dev/examples/ruby/spec/getting_started/open_browser_spec.rb#L8-L11" >}}
43+
options = Selenium::WebDriver::Options.chrome
44+
driver = Selenium::WebDriver.for :chrome, options: options
45+
46+
driver.quit
47+
{{< /tab >}}
48+
{{< tab header="JavaScript" >}}
49+
{{< gh-codeblock path="/examples/javascript/test/getting_started/openChromeTest.spec.js">}}
50+
{{< /tab >}}
51+
{{< tab header="Kotlin" code=true >}}
52+
val options = ChromeOptions()
53+
val driver = ChromeDriver(options)
54+
55+
driver.quit()
56+
{{< /tab >}}
57+
{{< /tabpane >}}
58+
1859
Here are a few common use cases with different capabilities:
1960

2061
### Arguments

website_and_docs/content/documentation/webdriver/browsers/chrome.ja.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,53 @@ aliases: [
99
]
1010
---
1111

12+
By default, Selenium 4 is compatible with Chrome v75 and greater. Note that the version of
13+
the Chrome browser and the version of chromedriver must match the major version.
14+
1215
## Options
1316

1417
Capabilities common to all browsers are described on the [Options page]({{< ref "../drivers/options.md" >}}).
1518

1619
Capabilities unique to Chrome can be found at Google's page for [Capabilities & ChromeOptions](https://chromedriver.chromium.org/capabilities)
1720

21+
Starting a Chrome session with basic defined options looks like this:
22+
23+
{{< tabpane langEqualsHeader=true code=false >}}
24+
{{< tab header="Java" code=true github="SeleniumHQ/seleniumhq.github.io/blob/dev/examples/java/src/test/java/dev/selenium/getting_started/OpenBrowserTest.java#L27-L30" >}}
25+
ChromeOptions options = new ChromeOptions();
26+
driver = new ChromeDriver(options);
27+
28+
driver.quit();
29+
{{< /tab >}}
30+
{{< tab header="Python" code=true github="SeleniumHQ/seleniumhq.github.io/blob/dev/examples/python/tests/getting_started/test_open_browser.py#L10-L13" >}}
31+
options = ChromeOptions()
32+
driver = webdriver.Chrome(options=options)
33+
34+
driver.quit()
35+
{{< /tab >}}
36+
{{< tab header="CSharp" code=true github="SeleniumHQ/seleniumhq.github.io/blob/dev/examples/dotnet/SeleniumDocs/GettingStarted/OpenBrowserTest.cs#L17-L20" >}}
37+
var options = new ChromeOptions();
38+
var driver = new ChromeDriver(options);
39+
40+
driver.Quit();
41+
{{< /tab >}}
42+
{{< tab header="Ruby" code=true github="SeleniumHQ/seleniumhq.github.io/blob/dev/examples/ruby/spec/getting_started/open_browser_spec.rb#L8-L11" >}}
43+
options = Selenium::WebDriver::Options.chrome
44+
driver = Selenium::WebDriver.for :chrome, options: options
45+
46+
driver.quit
47+
{{< /tab >}}
48+
{{< tab header="JavaScript" >}}
49+
{{< gh-codeblock path="/examples/javascript/test/getting_started/openChromeTest.spec.js">}}
50+
{{< /tab >}}
51+
{{< tab header="Kotlin" code=true >}}
52+
val options = ChromeOptions()
53+
val driver = ChromeDriver(options)
54+
55+
driver.quit()
56+
{{< /tab >}}
57+
{{< /tabpane >}}
58+
1859
Here are a few common use cases with different capabilities:
1960

2061
### Arguments

website_and_docs/content/documentation/webdriver/browsers/chrome.pt-br.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,53 @@ aliases: [
99
]
1010
---
1111

12+
By default, Selenium 4 is compatible with Chrome v75 and greater. Note that the version of
13+
the Chrome browser and the version of chromedriver must match the major version.
14+
1215
## Options
1316

1417
Capabilities common to all browsers are described on the [Options page]({{< ref "../drivers/options.md" >}}).
1518

1619
Capabilities unique to Chrome can be found at Google's page for [Capabilities & ChromeOptions](https://chromedriver.chromium.org/capabilities)
1720

21+
Starting a Chrome session with basic defined options looks like this:
22+
23+
{{< tabpane langEqualsHeader=true code=false >}}
24+
{{< tab header="Java" code=true github="SeleniumHQ/seleniumhq.github.io/blob/dev/examples/java/src/test/java/dev/selenium/getting_started/OpenBrowserTest.java#L27-L30" >}}
25+
ChromeOptions options = new ChromeOptions();
26+
driver = new ChromeDriver(options);
27+
28+
driver.quit();
29+
{{< /tab >}}
30+
{{< tab header="Python" code=true github="SeleniumHQ/seleniumhq.github.io/blob/dev/examples/python/tests/getting_started/test_open_browser.py#L10-L13" >}}
31+
options = ChromeOptions()
32+
driver = webdriver.Chrome(options=options)
33+
34+
driver.quit()
35+
{{< /tab >}}
36+
{{< tab header="CSharp" code=true github="SeleniumHQ/seleniumhq.github.io/blob/dev/examples/dotnet/SeleniumDocs/GettingStarted/OpenBrowserTest.cs#L17-L20" >}}
37+
var options = new ChromeOptions();
38+
var driver = new ChromeDriver(options);
39+
40+
driver.Quit();
41+
{{< /tab >}}
42+
{{< tab header="Ruby" code=true github="SeleniumHQ/seleniumhq.github.io/blob/dev/examples/ruby/spec/getting_started/open_browser_spec.rb#L8-L11" >}}
43+
options = Selenium::WebDriver::Options.chrome
44+
driver = Selenium::WebDriver.for :chrome, options: options
45+
46+
driver.quit
47+
{{< /tab >}}
48+
{{< tab header="JavaScript" >}}
49+
{{< gh-codeblock path="/examples/javascript/test/getting_started/openChromeTest.spec.js">}}
50+
{{< /tab >}}
51+
{{< tab header="Kotlin" code=true >}}
52+
val options = ChromeOptions()
53+
val driver = ChromeDriver(options)
54+
55+
driver.quit()
56+
{{< /tab >}}
57+
{{< /tabpane >}}
58+
1859
Here are a few common use cases with different capabilities:
1960

2061
### Arguments

website_and_docs/content/documentation/webdriver/browsers/chrome.zh-cn.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,53 @@ aliases: [
99
]
1010
---
1111

12+
By default, Selenium 4 is compatible with Chrome v75 and greater. Note that the version of
13+
the Chrome browser and the version of chromedriver must match the major version.
14+
1215
## Options
1316

1417
Capabilities common to all browsers are described on the [Options page]({{< ref "../drivers/options.md" >}}).
1518

1619
Capabilities unique to Chrome can be found at Google's page for [Capabilities & ChromeOptions](https://chromedriver.chromium.org/capabilities)
1720

21+
Starting a Chrome session with basic defined options looks like this:
22+
23+
{{< tabpane langEqualsHeader=true code=false >}}
24+
{{< tab header="Java" code=true github="SeleniumHQ/seleniumhq.github.io/blob/dev/examples/java/src/test/java/dev/selenium/getting_started/OpenBrowserTest.java#L27-L30" >}}
25+
ChromeOptions options = new ChromeOptions();
26+
driver = new ChromeDriver(options);
27+
28+
driver.quit();
29+
{{< /tab >}}
30+
{{< tab header="Python" code=true github="SeleniumHQ/seleniumhq.github.io/blob/dev/examples/python/tests/getting_started/test_open_browser.py#L10-L13" >}}
31+
options = ChromeOptions()
32+
driver = webdriver.Chrome(options=options)
33+
34+
driver.quit()
35+
{{< /tab >}}
36+
{{< tab header="CSharp" code=true github="SeleniumHQ/seleniumhq.github.io/blob/dev/examples/dotnet/SeleniumDocs/GettingStarted/OpenBrowserTest.cs#L17-L20" >}}
37+
var options = new ChromeOptions();
38+
var driver = new ChromeDriver(options);
39+
40+
driver.Quit();
41+
{{< /tab >}}
42+
{{< tab header="Ruby" code=true github="SeleniumHQ/seleniumhq.github.io/blob/dev/examples/ruby/spec/getting_started/open_browser_spec.rb#L8-L11" >}}
43+
options = Selenium::WebDriver::Options.chrome
44+
driver = Selenium::WebDriver.for :chrome, options: options
45+
46+
driver.quit
47+
{{< /tab >}}
48+
{{< tab header="JavaScript" >}}
49+
{{< gh-codeblock path="/examples/javascript/test/getting_started/openChromeTest.spec.js">}}
50+
{{< /tab >}}
51+
{{< tab header="Kotlin" code=true >}}
52+
val options = ChromeOptions()
53+
val driver = ChromeDriver(options)
54+
55+
driver.quit()
56+
{{< /tab >}}
57+
{{< /tabpane >}}
58+
1859
Here are a few common use cases with different capabilities:
1960

2061
### Arguments

website_and_docs/content/documentation/webdriver/browsers/edge.en.md

Lines changed: 49 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,53 @@ description: >-
66
These are capabilities and features specific to Microsoft Edge browsers.
77
---
88

9-
Microsoft Edge is based on Chromium, so all capabilities and options
10-
found on the [Chrome page]({{< ref "chrome.md" >}}) works for Edge as well.
9+
Microsoft Edge is implemented with Chromium, with the earliest supported version of v79. Similar to Chrome,
10+
the major version number of edgedriver must match the major version of the Edge browser.
1111

12-
Additionally, Microsoft Edge can be driven in "Internet Explorer Compatibility Mode" —
13-
read the [Internet Explorer page]({{< ref "internet_explorer.md" >}}) for more details.
12+
All capabilities and options found on the [Chrome page]({{< ref "chrome.md" >}}) work for Edge as well.
13+
14+
## Options
15+
16+
Starting an Edge session with basic defined options looks like this:
17+
18+
{{< tabpane langEqualsHeader=true code=false >}}
19+
{{< tab header="Java" code=true github="SeleniumHQ/seleniumhq.github.io/blob/dev/examples/java/src/test/java/dev/selenium/getting_started/OpenBrowserTest.java#L35-L38">}}
20+
EdgeOptions options = new EdgeOptions();
21+
driver = new EdgeDriver(options);
22+
23+
driver.quit();
24+
{{< /tab >}}
25+
{{< tab header="Python" code=true github="SeleniumHQ/seleniumhq.github.io/blob/dev/examples/python/tests/getting_started/test_open_browser.py#L18-L21" >}}
26+
options = EdgeOptions()
27+
driver = webdriver.Edge(options=options)
28+
29+
driver.quit()
30+
{{< /tab >}}
31+
{{< tab header="CSharp" code=true github="SeleniumHQ/seleniumhq.github.io/blob/dev/examples/dotnet/SeleniumDocs/GettingStarted/OpenBrowserTest.cs#L27-L30" >}}
32+
var options = new EdgeOptions();
33+
var driver = new EdgeDriver(options);
34+
35+
driver.Quit();
36+
{{< /tab >}}
37+
{{< tab header="Ruby" code=true github="SeleniumHQ/seleniumhq.github.io/blob/dev/examples/ruby/spec/getting_started/open_browser_spec.rb#L17-L20" >}}
38+
options = Selenium::WebDriver::Options.edge
39+
driver = Selenium::WebDriver.for :edge, options: options
40+
41+
driver.quit
42+
{{< /tab >}}
43+
{{< tab header="JavaScript" >}}
44+
{{< gh-codeblock path="/examples/javascript/test/getting_started/openEdgeTest.spec.js">}}
45+
{{< /tab >}}
46+
{{< tab header="Kotlin" code=true >}}
47+
val options = EdgeOptions()
48+
val driver = EdgeDriver(options)
49+
50+
driver.quit()
51+
{{< /tab >}}
52+
{{< /tabpane >}}
53+
54+
### Internet Explorer Compatibility Mode
55+
56+
Microsoft Edge can be driven in "Internet Explorer Compatibility Mode," which uses
57+
the Internet Explorer Driver classes in conjunction with Microsoft Edge.
58+
Read the [Internet Explorer page]({{< ref "internet_explorer.md" >}}) for more details.

website_and_docs/content/documentation/webdriver/browsers/edge.ja.md

Lines changed: 49 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,53 @@ description: >-
66
These are capabilities and features specific to Microsoft Edge browsers.
77
---
88

9-
Microsoft Edge is based on Chromium, so all capabilities and options
10-
found on the [Chrome page]({{< ref "chrome.md" >}}) works for Edge as well.
9+
Microsoft Edge is implemented with Chromium, with the earliest supported version of v79. Similar to Chrome,
10+
the major version number of edgedriver must match the major version of the Edge browser.
1111

12-
Additionally, Microsoft Edge can be driven in "Internet Explorer Compatibility Mode" —
13-
read the [Internet Explorer page]({{< ref "internet_explorer.md" >}}) for more details.
12+
All capabilities and options found on the [Chrome page]({{< ref "chrome.md" >}}) work for Edge as well.
13+
14+
## Options
15+
16+
Starting an Edge session with basic defined options looks like this:
17+
18+
{{< tabpane langEqualsHeader=true code=false >}}
19+
{{< tab header="Java" code=true github="SeleniumHQ/seleniumhq.github.io/blob/dev/examples/java/src/test/java/dev/selenium/getting_started/OpenBrowserTest.java#L35-L38">}}
20+
EdgeOptions options = new EdgeOptions();
21+
driver = new EdgeDriver(options);
22+
23+
driver.quit();
24+
{{< /tab >}}
25+
{{< tab header="Python" code=true github="SeleniumHQ/seleniumhq.github.io/blob/dev/examples/python/tests/getting_started/test_open_browser.py#L18-L21" >}}
26+
options = EdgeOptions()
27+
driver = webdriver.Edge(options=options)
28+
29+
driver.quit()
30+
{{< /tab >}}
31+
{{< tab header="CSharp" code=true github="SeleniumHQ/seleniumhq.github.io/blob/dev/examples/dotnet/SeleniumDocs/GettingStarted/OpenBrowserTest.cs#L27-L30" >}}
32+
var options = new EdgeOptions();
33+
var driver = new EdgeDriver(options);
34+
35+
driver.Quit();
36+
{{< /tab >}}
37+
{{< tab header="Ruby" code=true github="SeleniumHQ/seleniumhq.github.io/blob/dev/examples/ruby/spec/getting_started/open_browser_spec.rb#L17-L20" >}}
38+
options = Selenium::WebDriver::Options.edge
39+
driver = Selenium::WebDriver.for :edge, options: options
40+
41+
driver.quit
42+
{{< /tab >}}
43+
{{< tab header="JavaScript" >}}
44+
{{< gh-codeblock path="/examples/javascript/test/getting_started/openEdgeTest.spec.js">}}
45+
{{< /tab >}}
46+
{{< tab header="Kotlin" code=true >}}
47+
val options = EdgeOptions()
48+
val driver = EdgeDriver(options)
49+
50+
driver.quit()
51+
{{< /tab >}}
52+
{{< /tabpane >}}
53+
54+
### Internet Explorer Compatibility Mode
55+
56+
Microsoft Edge can be driven in "Internet Explorer Compatibility Mode," which uses
57+
the Internet Explorer Driver classes in conjunction with Microsoft Edge.
58+
Read the [Internet Explorer page]({{< ref "internet_explorer.md" >}}) for more details.

0 commit comments

Comments
 (0)