File tree Expand file tree Collapse file tree 4 files changed +39
-0
lines changed
rb/lib/selenium/webdriver Expand file tree Collapse file tree 4 files changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ class Driver < WebDriver::Driver
32
32
DriverExtensions ::HasNetworkConditions ,
33
33
DriverExtensions ::HasNetworkInterception ,
34
34
DriverExtensions ::HasWebStorage ,
35
+ DriverExtensions ::HasLaunching ,
35
36
DriverExtensions ::HasLocation ,
36
37
DriverExtensions ::DownloadsFiles ,
37
38
DriverExtensions ::HasDevTools ,
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ module Chrome
23
23
module Features
24
24
25
25
CHROME_COMMANDS = {
26
+ launch_app : [ :post , 'session/:session_id/chromium/launch_app' ] ,
26
27
get_cast_sinks : [ :get , 'session/:session_id/goog/cast/get_sinks' ] ,
27
28
set_cast_sink_to_use : [ :post , 'session/:session_id/goog/cast/set_sink_to_use' ] ,
28
29
start_cast_tab_mirroring : [ :post , 'session/:session_id/goog/cast/start_tab_mirroring' ] ,
@@ -39,6 +40,10 @@ def commands(command)
39
40
CHROME_COMMANDS [ command ] || self . class ::COMMANDS [ command ]
40
41
end
41
42
43
+ def launch_app ( id )
44
+ execute :launch_app , { } , { id : id }
45
+ end
46
+
42
47
def cast_sinks
43
48
execute :get_cast_sinks
44
49
end
Original file line number Diff line number Diff line change 71
71
require 'selenium/webdriver/common/driver_extensions/has_pinned_scripts'
72
72
require 'selenium/webdriver/common/driver_extensions/has_cdp'
73
73
require 'selenium/webdriver/common/driver_extensions/has_casting'
74
+ require 'selenium/webdriver/common/driver_extensions/has_launching'
74
75
require 'selenium/webdriver/common/keys'
75
76
require 'selenium/webdriver/common/profile_helper'
76
77
require 'selenium/webdriver/common/options'
Original file line number Diff line number Diff line change
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 HasLaunching
24
+
25
+ def launch_app ( id )
26
+ @bridge . launch_app ( id )
27
+ end
28
+
29
+ end # HasLaunching
30
+ end # DriverExtensions
31
+ end # WebDriver
32
+ end # Selenium
You can’t perform that action at this time.
0 commit comments