Skip to content

Commit 2ec4ea4

Browse files
committed
[py] use enable_logging for Safari logging
1 parent 215adae commit 2ec4ea4

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed

examples/python/tests/browsers/test_safari.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def test_basic_options():
1414

1515
@pytest.mark.skipif(sys.platform != "darwin", reason="requires Mac")
1616
def test_enable_logging():
17-
service = webdriver.SafariService(service_args=["--diagnose"])
17+
service = webdriver.SafariService(enable_logging=True)
1818

1919
driver = webdriver.Safari(service=service)
2020

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

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ Property key: `SafariDriverService.SAFARI_DRIVER_LOGGING`\
6969
Property value: `"true"` or `"false"`
7070
{{% /tab %}}
7171
{{< tab header="Python" >}}
72+
{{< badge-version version="4.26" >}}
7273
{{< gh-codeblock path="examples/python/tests/browsers/test_safari.py#L17" >}}
7374
{{< /tab >}}
7475
{{< tab header="CSharp" >}}

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

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ Property key: `SafariDriverService.SAFARI_DRIVER_LOGGING`\
6868
Property value: `"true"` or `"false"`
6969
{{% /tab %}}
7070
{{< tab header="Python" >}}
71+
{{< badge-version version="4.26" >}}
7172
{{< gh-codeblock path="examples/python/tests/browsers/test_safari.py#L17" >}}
7273
{{< /tab >}}
7374
{{< tab header="CSharp" >}}

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

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ Property key: `SafariDriverService.SAFARI_DRIVER_LOGGING`\
6868
Property value: `"true"` or `"false"`
6969
{{% /tab %}}
7070
{{< tab header="Python" >}}
71+
{{< badge-version version="4.26" >}}
7172
{{< gh-codeblock path="examples/python/tests/browsers/test_safari.py#L17" >}}
7273
{{< /tab >}}
7374
{{< tab header="CSharp" >}}

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

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Safari 浏览器不允许您选择日志的输出位置或更改级别.
7171
属性值: `"true"``"false"`
7272
{{% /tab %}}
7373
{{< tab header="Python" >}}
74+
{{< badge-version version="4.26" >}}
7475
{{< gh-codeblock path="examples/python/tests/browsers/test_safari.py#L17" >}}
7576
{{< /tab >}}
7677
{{< tab header="CSharp" >}}

0 commit comments

Comments
 (0)