Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/python/tests/browsers/test_chrome.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
from selenium.webdriver.common.by import By

def test_basic_options():
options = get_default_chrome_options()
options = webdriver.ChromeOptions()
options.add_argument("--no-sandbox")
driver = webdriver.Chrome(options=options)

driver.quit()
Expand Down
4 changes: 2 additions & 2 deletions examples/python/tests/browsers/test_edge.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from selenium.webdriver.common.by import By

def test_basic_options():
options = get_default_edge_options()

options = webdriver.EdgeOptions()
options.add_argument("--no-sandbox")
driver = webdriver.Edge(options=options)

driver.quit()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Starting a Chrome session with basic defined options looks like this:
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L36-L37" >}}
{{< /tab >}}
{{% tab header="Python" %}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L9-L10" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L9-L11" >}}
Comment thread
diemol marked this conversation as resolved.
{{% /tab %}}
{{< tab header="CSharp" >}}
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L30-L31" >}}
Expand Down Expand Up @@ -58,7 +58,7 @@ Add an argument to options:
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L44" >}}
{{< /tab >}}
{{% tab header="Python" %}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L18" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L19" >}}
{{% /tab %}}
{{< tab header="CSharp" >}}
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L39" >}}
Expand Down Expand Up @@ -86,7 +86,7 @@ Add a browser location to options:
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L53" >}}
{{< /tab >}}
{{% tab header="Python" %}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L29">}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L30">}}
{{% /tab %}}
{{< tab header="CSharp" >}}
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L49" >}}
Expand Down Expand Up @@ -115,7 +115,7 @@ Add an extension to options:
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L64" >}}
{{< /tab >}}
{{% tab header="Python" %}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L40">}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L41">}}
{{% /tab %}}
{{< tab header="CSharp" >}}
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L73-L84" >}}
Expand All @@ -141,7 +141,7 @@ so long as the quit command is not sent to the driver.
**Note**: This is already the default behavior in Java.
{{% /tab %}}
{{% tab header="Python" %}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L51" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L52" >}}
{{% /tab %}}
{{% tab header="CSharp" %}}
**Note**: This is already the default behavior in .NET.
Expand Down Expand Up @@ -172,7 +172,7 @@ Set excluded arguments on options:
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L78" >}}
{{< /tab >}}
{{% tab header="Python" %}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L62" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L63" >}}
{{% /tab %}}
{{< tab header="CSharp" >}}
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L82" >}}
Expand Down Expand Up @@ -212,7 +212,7 @@ Property value: String representing path to log file
{{% /tab %}}
{{< tab header="Python" >}}
{{< badge-version version="4.11" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L71" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L72" >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L86" >}}
Expand Down Expand Up @@ -243,7 +243,7 @@ Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR`
{{% /tab %}}
{{< tab header="Python" >}}
{{< badge-version version="4.11" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L82" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L83" >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< badge-implementation >}}
Expand Down Expand Up @@ -276,7 +276,7 @@ Property value: String representation of `ChromiumDriverLogLevel` enum
{{% /tab %}}
{{< tab header="Python" >}}
{{< badge-version version="4.11" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L93" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L94" >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< badge-implementation >}}
Expand Down Expand Up @@ -310,7 +310,7 @@ Property keys: `ChromeDriverService.CHROME_DRIVER_APPEND_LOG_PROPERTY` and `Chro
Property value: `"true"` or `"false"`
{{% /tab %}}
{{< tab header="Python" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L104" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L105" >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< badge-implementation >}}
Expand Down Expand Up @@ -343,7 +343,7 @@ Property value: `"true"` or `"false"`
{{% /tab %}}
{{< tab header="Python" >}}
{{< badge-version version="4.11" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L115" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L116" >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L155" >}}
Expand Down Expand Up @@ -373,7 +373,7 @@ You can drive Chrome Cast devices, including sharing tabs
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L230-L235" >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L170-L174" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L171-L175" >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< badge-code >}}
Expand All @@ -399,7 +399,7 @@ You can simulate various network conditions.
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L204-L210" >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L129-L135" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L130-L136" >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< badge-code >}}
Expand All @@ -422,7 +422,7 @@ You can simulate various network conditions.
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L247" >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L186" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L187" >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< badge-code >}}
Expand All @@ -445,7 +445,7 @@ You can simulate various network conditions.
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L189" >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L149" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L150" >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< badge-code >}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ChromeおよびChromiumに特有の機能は、Googleの [Capabilities & ChromeO
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L36-L37" >}}
{{< /tab >}}
{{% tab header="Python" %}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L9-L10" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L9-L11" >}}
{{% /tab %}}
{{< tab header="CSharp" >}}
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L30-L31" >}}
Expand Down Expand Up @@ -57,7 +57,7 @@ ChromeおよびChromiumに特有の機能は、Googleの [Capabilities & ChromeO
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L44" >}}
{{< /tab >}}
{{% tab header="Python" %}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L18" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L19" >}}
{{% /tab %}}
{{< tab header="CSharp" >}}
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L39" >}}
Expand Down Expand Up @@ -85,7 +85,7 @@ ChromeおよびChromiumに特有の機能は、Googleの [Capabilities & ChromeO
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L53" >}}
{{< /tab >}}
{{% tab header="Python" %}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L29">}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L30">}}
{{% /tab %}}
{{< tab header="CSharp" >}}
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L49" >}}
Expand Down Expand Up @@ -114,7 +114,7 @@ The `extensions` パラメータはcrxファイルを受け入れます。解凍
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L64" >}}
{{< /tab >}}
{{% tab header="Python" %}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L40">}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L41">}}
{{% /tab %}}
{{< tab header="CSharp" >}}
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L73-L84" >}}
Expand All @@ -139,7 +139,7 @@ The `extensions` パラメータはcrxファイルを受け入れます。解凍
**注意**: これはすでにJavaのデフォルトの動作です。
{{% /tab %}}
{{% tab header="Python" %}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L51" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L52" >}}
{{% /tab %}}
{{% tab header="CSharp" %}}
**注意**: これはすでに.NETのデフォルトの動作です。
Expand Down Expand Up @@ -171,7 +171,7 @@ Chrome はさまざまな引数を追加します。
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L78" >}}
{{< /tab >}}
{{% tab header="Python" %}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L62" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L63" >}}
{{% /tab %}}
{{< tab header="CSharp" >}}
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L82" >}}
Expand Down Expand Up @@ -209,7 +209,7 @@ Chrome はさまざまな引数を追加します。
{{% /tab %}}
{{< tab header="Python" >}}
{{< badge-version version="4.11" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L71" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L72" >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L86" >}}
Expand Down Expand Up @@ -240,7 +240,7 @@ Chrome はさまざまな引数を追加します。
{{% /tab %}}
{{< tab header="Python" >}}
{{< badge-version version="4.11" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L82" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L83" >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< badge-implementation >}}
Expand Down Expand Up @@ -271,7 +271,7 @@ Chrome はさまざまな引数を追加します。
{{% /tab %}}
{{< tab header="Python" >}}
{{< badge-version version="4.11" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L93" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L94" >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< badge-implementation >}}
Expand Down Expand Up @@ -304,7 +304,7 @@ Chrome はさまざまな引数を追加します。
プロパティ値: `"true"` または `"false"`
{{% /tab %}}
{{< tab header="Python" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L104" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L105" >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< badge-implementation >}}
Expand Down Expand Up @@ -335,7 +335,7 @@ ChromedriverとChromeブラウザのバージョンは一致する必要があ
{{% /tab %}}
{{< tab header="Python" >}}
{{< badge-version version="4.11" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L115" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L116" >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L155" >}}
Expand Down Expand Up @@ -366,7 +366,7 @@ Chrome Castデバイスを操作することができ、タブの共有も含ま
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L230-L235" >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L170-L174" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L171-L175" >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< badge-code >}}
Expand All @@ -393,7 +393,7 @@ Chrome Castデバイスを操作することができ、タブの共有も含ま
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L204-L210" >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L129-L135" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L130-L136" >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< badge-code >}}
Expand All @@ -416,7 +416,7 @@ Chrome Castデバイスを操作することができ、タブの共有も含ま
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L247" >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L186" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L187" >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< badge-code >}}
Expand All @@ -439,7 +439,7 @@ Chrome Castデバイスを操作することができ、タブの共有も含ま
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L189" >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L149" >}}
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L150" >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< badge-code >}}
Expand Down
Loading
Loading