File tree 2 files changed +5
-4
lines changed
lib/selenium/webdriver/remote
spec/integration/selenium/webdriver
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,8 @@ def driver_extensions
85
85
DriverExtensions ::HasSessionId ,
86
86
DriverExtensions ::Rotatable ,
87
87
DriverExtensions ::HasTouchScreen ,
88
+ DriverExtensions ::HasLocation ,
89
+ DriverExtensions ::HasNetworkConnection ,
88
90
DriverExtensions ::HasRemoteStatus
89
91
]
90
92
end
@@ -326,7 +328,7 @@ def getNetworkConnection
326
328
end
327
329
328
330
def setNetworkConnection ( type )
329
- execute :setNetworkConnection , { } , :type => type
331
+ execute :setNetworkConnection , { } , :parameters => { : type => type }
330
332
end
331
333
332
334
#
Original file line number Diff line number Diff line change 2
2
3
3
module Selenium ::WebDriver ::DriverExtensions
4
4
describe HasNetworkConnection do
5
- compliant_on :browser => nil do
5
+ compliant_on :browser => :android do
6
6
it "can return the network connection type" do
7
7
expect ( driver . network_connection_type ) . to eq :all
8
8
end
9
9
10
10
it "can set the network connection type" do
11
- expect { driver . network_connection_type = :airplane_mode } . to
12
- change { driver . network_connection_type } . from ( :all ) . to ( :airplane_mode )
11
+ expect { driver . network_connection_type = :airplane_mode } . to change { driver . network_connection_type } . from ( :all ) . to ( :airplane_mode )
13
12
end
14
13
end
15
14
end
You can’t perform that action at this time.
0 commit comments