52
52
import org .openqa .selenium .devtools .DevTools ;
53
53
import org .openqa .selenium .devtools .HasDevTools ;
54
54
import org .openqa .selenium .devtools .noop .NoOpCdpInfo ;
55
- import org .openqa .selenium .html5 .Location ;
56
- import org .openqa .selenium .html5 .LocationContext ;
57
55
import org .openqa .selenium .internal .Require ;
58
56
import org .openqa .selenium .json .TypeToken ;
59
57
import org .openqa .selenium .logging .EventType ;
60
58
import org .openqa .selenium .logging .HasLogEvents ;
61
59
import org .openqa .selenium .remote .CommandExecutor ;
62
60
import org .openqa .selenium .remote .FileDetector ;
63
61
import org .openqa .selenium .remote .RemoteWebDriver ;
64
- import org .openqa .selenium .remote .html5 .RemoteLocationContext ;
65
62
import org .openqa .selenium .remote .http .ClientConfig ;
66
63
import org .openqa .selenium .remote .http .ConnectionFailedException ;
67
64
import org .openqa .selenium .remote .http .HttpClient ;
@@ -79,15 +76,13 @@ public class ChromiumDriver extends RemoteWebDriver
79
76
HasLaunchApp ,
80
77
HasLogEvents ,
81
78
HasNetworkConditions ,
82
- HasPermissions ,
83
- LocationContext {
79
+ HasPermissions {
84
80
85
81
public static final Predicate <String > IS_CHROMIUM_BROWSER =
86
82
name -> CHROME .is (name ) || EDGE .is (name ) || OPERA .is (name );
87
83
private static final Logger LOG = Logger .getLogger (ChromiumDriver .class .getName ());
88
84
89
85
private final Capabilities capabilities ;
90
- private final RemoteLocationContext locationContext ;
91
86
private final HasNetworkConditions networkConditions ;
92
87
private final HasPermissions permissions ;
93
88
private final HasLaunchApp launch ;
@@ -102,7 +97,6 @@ public class ChromiumDriver extends RemoteWebDriver
102
97
protected ChromiumDriver (
103
98
CommandExecutor commandExecutor , Capabilities capabilities , String capabilityKey ) {
104
99
super (commandExecutor , capabilities );
105
- locationContext = new RemoteLocationContext (getExecuteMethod ());
106
100
permissions = new AddHasPermissions ().getImplementation (getCapabilities (), getExecuteMethod ());
107
101
networkConditions =
108
102
new AddHasNetworkConditions ().getImplementation (getCapabilities (), getExecuteMethod ());
@@ -280,19 +274,6 @@ public void register(Predicate<URI> whenThisMatches, Supplier<Credentials> useTh
280
274
getDevTools ().getDomains ().network ().addAuthHandler (whenThisMatches , useTheseCredentials );
281
275
}
282
276
283
- @ Override
284
- @ Deprecated
285
- public Location location () {
286
- return locationContext .location ();
287
- }
288
-
289
- @ Override
290
- @ Deprecated
291
- public void setLocation (Location location ) {
292
- Require .nonNull ("Location" , location );
293
- locationContext .setLocation (location );
294
- }
295
-
296
277
@ Override
297
278
public void launchApp (String id ) {
298
279
Require .nonNull ("Launch App ID" , id );
0 commit comments