Skip to content

Commit 7942c68

Browse files
aguspeharsha509
andauthored
Start adding special features examples (#1711)[deploy site]
* Start adding special features examples * Added casting example for ruby under example features * Remove the extra duplicate * Update example lines --------- Co-authored-by: aguspe <[email protected]> Co-authored-by: Sri Harsha <[email protected]>
1 parent 6057c6a commit 7942c68

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

examples/ruby/spec/browsers/chrome_spec.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,18 @@
113113
end
114114
end
115115

116+
describe 'Special Features' do
117+
it 'casts' do
118+
@driver = Selenium::WebDriver.for :chrome
119+
sinks = @driver.cast_sinks
120+
unless sinks.empty?
121+
device_name = sinks.first['name']
122+
@driver.start_cast_tab_mirroring(device_name)
123+
expect { @driver.stop_casting(device_name) }.not_to raise_exception
124+
end
125+
end
126+
end
127+
116128
def driver_finder
117129
options = Selenium::WebDriver::Options.chrome(browser_version: 'stable')
118130
service = Selenium::WebDriver::Service.chrome

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ You can drive Chrome Cast devices, including sharing tabs
379379
{{< badge-code >}}
380380
{{< /tab >}}
381381
{{< tab header="Ruby" >}}
382-
{{< badge-code >}}
382+
{{< gh-codeblock path="examples/ruby/spec/drivers/chrome_spec.rb#L119-L124" >}}
383383
{{< /tab >}}
384384
{{< tab header="JavaScript" >}}
385385
{{< badge-code >}}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ Property value: `"true"` or `"false"`
382382
{{< badge-code >}}
383383
{{< /tab >}}
384384
{{< tab header="Ruby" >}}
385-
{{< badge-code >}}
385+
{{< gh-codeblock path="examples/ruby/spec/drivers/chrome_spec.rb#L119-L124" >}}
386386
{{< /tab >}}
387387
{{< tab header="JavaScript" >}}
388388
{{< badge-code >}}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ Pode comandar dispositivos Chrome Cast, incluindo partilhar abas
379379
{{< badge-code >}}
380380
{{< /tab >}}
381381
{{< tab header="Ruby" >}}
382-
{{< badge-code >}}
382+
{{< gh-codeblock path="examples/ruby/spec/drivers/chrome_spec.rb#L119-L124" >}}
383383
{{< /tab >}}
384384
{{< tab header="JavaScript" >}}
385385
{{< badge-code >}}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ Property value: `"true"` or `"false"`
378378
{{< badge-code >}}
379379
{{< /tab >}}
380380
{{< tab header="Ruby" >}}
381-
{{< badge-code >}}
381+
{{< gh-codeblock path="examples/ruby/spec/drivers/chrome_spec.rb#L119-L124" >}}
382382
{{< /tab >}}
383383
{{< tab header="JavaScript" >}}
384384
{{< badge-code >}}

0 commit comments

Comments
 (0)