Skip to content

Commit

Permalink
[py] use enable_logging for Safari logging (SeleniumHQ#2123)[deploy…
Browse files Browse the repository at this point in the history
… site]

Co-authored-by: Sri Harsha <[email protected]>
Delta456 and harsha509 authored Jan 7, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 36ce362 commit 8f04176
Showing 5 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/python/tests/browsers/test_safari.py
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ def test_basic_options():

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

driver = webdriver.Safari(service=service)

Original file line number Diff line number Diff line change
@@ -69,6 +69,7 @@ Property key: `SafariDriverService.SAFARI_DRIVER_LOGGING`\
Property value: `"true"` or `"false"`
{{% /tab %}}
{{< tab header="Python" >}}
{{< badge-version version="4.26" >}}
{{< gh-codeblock path="examples/python/tests/browsers/test_safari.py#L17" >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
Original file line number Diff line number Diff line change
@@ -68,6 +68,7 @@ Property key: `SafariDriverService.SAFARI_DRIVER_LOGGING`\
Property value: `"true"` or `"false"`
{{% /tab %}}
{{< tab header="Python" >}}
{{< badge-version version="4.26" >}}
{{< gh-codeblock path="examples/python/tests/browsers/test_safari.py#L17" >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
Original file line number Diff line number Diff line change
@@ -68,6 +68,7 @@ Property key: `SafariDriverService.SAFARI_DRIVER_LOGGING`\
Property value: `"true"` or `"false"`
{{% /tab %}}
{{< tab header="Python" >}}
{{< badge-version version="4.26" >}}
{{< gh-codeblock path="examples/python/tests/browsers/test_safari.py#L17" >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
Original file line number Diff line number Diff line change
@@ -71,6 +71,7 @@ Safari 浏览器不允许您选择日志的输出位置或更改级别.
属性值: `"true"``"false"`
{{% /tab %}}
{{< tab header="Python" >}}
{{< badge-version version="4.26" >}}
{{< gh-codeblock path="examples/python/tests/browsers/test_safari.py#L17" >}}
{{< /tab >}}
{{< tab header="CSharp" >}}

0 comments on commit 8f04176

Please sign in to comment.