"Fossies" - the Fresh Open Source Software Archive 
Member "selenium-selenium-4.8.1/rb/lib/selenium/webdriver/common/driver_extensions/has_casting.rb" (17 Feb 2023, 2524 Bytes) of package /linux/www/selenium-selenium-4.8.1.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ruby source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
See also the last
Fossies "Diffs" side-by-side code changes report for "has_casting.rb":
4.7.0_vs_4.8.0.
1 # frozen_string_literal: true
2
3 # Licensed to the Software Freedom Conservancy (SFC) under one
4 # or more contributor license agreements. See the NOTICE file
5 # distributed with this work for additional information
6 # regarding copyright ownership. The SFC licenses this file
7 # to you under the Apache License, Version 2.0 (the
8 # "License"); you may not use this file except in compliance
9 # with the License. You may obtain a copy of the License at
10 #
11 # http://www.apache.org/licenses/LICENSE-2.0
12 #
13 # Unless required by applicable law or agreed to in writing,
14 # software distributed under the License is distributed on an
15 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 # KIND, either express or implied. See the License for the
17 # specific language governing permissions and limitations
18 # under the License.
19
20 module Selenium
21 module WebDriver
22 module DriverExtensions
23 module HasCasting
24 #
25 # What devices ("sinks") are available to be cast to.
26 #
27 # @return [Array] list of sinks available for casting with id and name values
28 #
29
30 def cast_sinks
31 @bridge.cast_sinks
32 end
33
34 #
35 # Sets a specific sink, using its name, as a Cast session receiver target.
36 #
37 # @param [String] name the sink to use as the target
38 #
39
40 def cast_sink_to_use=(name)
41 @bridge.cast_sink_to_use = name
42 end
43
44 #
45 # Starts a tab mirroring session on a specific receiver target.
46 #
47 # @param [String] name the sink to use as the target
48 #
49
50 def start_cast_tab_mirroring(name)
51 @bridge.start_cast_tab_mirroring(name)
52 end
53
54 #
55 # Starts a tab mirroring session on a specific receiver target.
56 #
57 # @param [String] name the sink to use as the target
58 #
59
60 def start_cast_desktop_mirroring(name)
61 @bridge.start_cast_desktop_mirroring(name)
62 end
63
64 #
65 # Gets error messages when there is any issue in a Cast session.
66 #
67 # @return [String] the error message
68 #
69
70 def cast_issue_message
71 @bridge.cast_issue_message
72 end
73
74 #
75 # Stops the existing Cast session on a specific receiver target.
76 #
77 # @param [String] name the sink to stop the Cast session
78 #
79
80 def stop_casting(name)
81 @bridge.stop_casting(name)
82 end
83 end # HasCasting
84 end # DriverExtensions
85 end # WebDriver
86 end # Selenium