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() {
33
33
34
34
driver = new SafariDriver (service );
35
35
}
36
+
37
+ public void safariTechnologyPreview () {
38
+ SafariOptions options = new SafariOptions ();
39
+ options .setUseTechnologyPreview (true );
40
+ driver = new SafariDriver (options );
41
+ }
36
42
}
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
93
93
94
94
{{< tabpane text=true >}}
95
95
{{< tab header="Java" >}}
96
- {{< badge-code >}}
96
+ {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/SafariTest.java#L39-L40" >}}
97
97
{{< /tab >}}
98
98
{{% tab header="Python" %}}
99
99
{{< 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:
93
93
94
94
{{< tabpane text=true >}}
95
95
{{< tab header="Java" >}}
96
- {{< badge-code >}}
96
+ {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/SafariTest.java#L39-L40" >}}
97
97
{{< /tab >}}
98
98
{{% tab header="Python" %}}
99
99
{{< 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:
93
93
94
94
{{< tabpane text=true >}}
95
95
{{< tab header="Java" >}}
96
- {{< badge-code >}}
96
+ {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/SafariTest.java#L39-L40" >}}
97
97
{{< /tab >}}
98
98
{{% tab header="Python" %}}
99
99
{{< 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
97
97
98
98
{{< tabpane text=true >}}
99
99
{{< tab header="Java" >}}
100
- {{< badge-code >}}
100
+ {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/SafariTest.java#L39-L40" >}}
101
101
{{< /tab >}}
102
102
{{% tab header="Python" %}}
103
103
{{< gh-codeblock path="examples/python/tests/browsers/test_safari.py#L25-L30" >}}
You can’t perform that action at this time.
0 commit comments