File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
java/client/src/org/openqa/selenium/remote/mobile Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -34,15 +34,17 @@ public RemoteNetworkConnection(ExecuteMethod executeMethod) {
34
34
35
35
@ Override
36
36
public ConnectionType getNetworkConnection () {
37
- return new ConnectionType (
38
- ( Integer ) executeMethod . execute ( DriverCommand . GET_NETWORK_CONNECTION , null ));
37
+ return new ConnectionType ((( Number ) executeMethod . execute ( DriverCommand . GET_NETWORK_CONNECTION ,
38
+ null )). intValue ( ));
39
39
}
40
40
41
41
@ Override
42
42
public ConnectionType setNetworkConnection (
43
43
ConnectionType type ) {
44
44
Map <String , ConnectionType > mode = ImmutableMap .of ("type" , type );
45
- return new ConnectionType ((Integer ) executeMethod
46
- .execute (DriverCommand .SET_NETWORK_CONNECTION , ImmutableMap .of ("parameters" , mode )));
45
+ return new ConnectionType (((Number ) executeMethod .execute (DriverCommand .SET_NETWORK_CONNECTION ,
46
+ ImmutableMap
47
+ .of ("parameters" , mode )))
48
+ .intValue ());
47
49
}
48
50
}
You can’t perform that action at this time.
0 commit comments