File tree Expand file tree Collapse file tree 5 files changed +10
-4
lines changed
examples/java/src/test/java/dev/selenium/browsers
website_and_docs/content/documentation/webdriver/browsers Expand file tree Collapse file tree 5 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -33,4 +33,10 @@ public void enableLogs() {
3333
3434 driver = new SafariDriver (service );
3535 }
36+
37+ public void safariTechnologyPreview () {
38+ SafariOptions options = new SafariOptions ();
39+ options .setUseTechnologyPreview (true );
40+ driver = new SafariDriver (options );
41+ }
3642}
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ Apple provides a development version of their browser — [Safari Technology Pre
9393
9494{{< tabpane text=true >}}
9595{{< tab header="Java" >}}
96- {{< badge-code >}}
96+ {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/SafariTest.java#L39-L40" >}}
9797{{< /tab >}}
9898{{% tab header="Python" %}}
9999{{< gh-codeblock path="examples/python/tests/browsers/test_safari.py#L25-L30" >}}
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ To use this version in your code:
9393
9494{{< tabpane text=true >}}
9595{{< tab header="Java" >}}
96- {{< badge-code >}}
96+ {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/SafariTest.java#L39-L40" >}}
9797{{< /tab >}}
9898{{% tab header="Python" %}}
9999{{< gh-codeblock path="examples/python/tests/browsers/test_safari.py#L25-L30" >}}
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ To use this version in your code:
9393
9494{{< tabpane text=true >}}
9595{{< tab header="Java" >}}
96- {{< badge-code >}}
96+ {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/SafariTest.java#L39-L40" >}}
9797{{< /tab >}}
9898{{% tab header="Python" %}}
9999{{< gh-codeblock path="examples/python/tests/browsers/test_safari.py#L25-L30" >}}
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ Apple 提供了其浏览器的开发版本 — [Safari Technology Preview](https
9797
9898{{< tabpane text=true >}}
9999{{< tab header="Java" >}}
100- {{< badge-code >}}
100+ {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/SafariTest.java#L39-L40" >}}
101101{{< /tab >}}
102102{{% tab header="Python" %}}
103103{{< gh-codeblock path="examples/python/tests/browsers/test_safari.py#L25-L30" >}}
You can’t perform that action at this time.
0 commit comments