File tree Expand file tree Collapse file tree 5 files changed +10
-4
lines changed
examples/ruby/spec/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 3131 } . to raise_error ( Selenium ::WebDriver ::Error ::WebDriverError , /Safari Service does not support setting log output/ )
3232 end
3333 end
34+
35+ it 'sets the technology preview' do
36+ Selenium ::WebDriver ::Safari . technology_preview!
37+ local_driver = Selenium ::WebDriver . for :safari
38+ expect ( local_driver . capabilities . browser_name ) . to eq 'Safari Technology Preview'
39+ end
3440end
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ Apple provides a development version of their browser — [Safari Technology Pre
102102{{< badge-code >}}
103103{{< /tab >}}
104104{{< tab header="Ruby" >}}
105- {{< badge-code >}}
105+ {{< gh-codeblock path="examples/ruby/spec/browsers/safari_spec.rb#L36-L37" >}}
106106{{< /tab >}}
107107{{< tab header="JavaScript" >}}
108108{{< badge-code >}}
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ To use this version in your code:
102102{{< badge-code >}}
103103{{< /tab >}}
104104{{< tab header="Ruby" >}}
105- {{< badge-code >}}
105+ {{< gh-codeblock path="examples/ruby/spec/browsers/safari_spec.rb#L36-L37" >}}
106106{{< /tab >}}
107107{{< tab header="JavaScript" >}}
108108{{< badge-code >}}
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ To use this version in your code:
102102{{< badge-code >}}
103103{{< /tab >}}
104104{{< tab header="Ruby" >}}
105- {{< badge-code >}}
105+ {{< gh-codeblock path="examples/ruby/spec/browsers/safari_spec.rb#L36-L37" >}}
106106{{< /tab >}}
107107{{< tab header="JavaScript" >}}
108108{{< badge-code >}}
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ To use this version in your code:
102102{{< badge-code >}}
103103{{< /tab >}}
104104{{< tab header="Ruby" >}}
105- {{< badge-code >}}
105+ {{< gh-codeblock path="examples/ruby/spec/browsers/safari_spec.rb#L36-L37" >}}
106106{{< /tab >}}
107107{{< tab header="JavaScript" >}}
108108{{< badge-code >}}
You can’t perform that action at this time.
0 commit comments