Skip to content

Commit 1e55133

Browse files
committedMar 2, 2015
server: remove Opera as supported browser from RC
1 parent 7a0e42a commit 1e55133

File tree

3 files changed

+1
-389
lines changed

3 files changed

+1
-389
lines changed
 

Diff for: ‎java/server/src/org/openqa/selenium/server/browserlaunchers/BrowserLauncherFactory.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2011 Software Freedom Conservancy.
2+
* Copyright 2011-2015 Software Freedom Conservancy
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -55,7 +55,6 @@ public class BrowserLauncherFactory {
5555
supportedBrowsers.put(BrowserType.SAFARI_PROXY, SafariCustomProfileLauncher.class);
5656
supportedBrowsers.put(BrowserType.IE_HTA, HTABrowserLauncher.class);
5757
supportedBrowsers.put(BrowserType.IEXPLORE, InternetExplorerLauncher.class);
58-
supportedBrowsers.put(BrowserType.OPERA, OperaCustomProfileLauncher.class);
5958
supportedBrowsers.put("piiexplore", ProxyInjectionInternetExplorerCustomProxyLauncher.class);
6059
supportedBrowsers.put("pifirefox", ProxyInjectionFirefoxCustomProfileLauncher.class);
6160
supportedBrowsers.put(BrowserType.KONQUEROR, KonquerorLauncher.class);

Diff for: ‎java/server/src/org/openqa/selenium/server/browserlaunchers/OperaCustomProfileLauncher.java

-341
This file was deleted.

Diff for: ‎java/server/test/org/openqa/grid/e2e/node/DefaultProxyFindsFirefoxLocationsTest.java

-46
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ public class DefaultProxyFindsFirefoxLocationsTest {
5858
private static final String locationChrome27 = "/home/chrome27";
5959
private static final String locationChrome29 = "c:\\program files\\Chrome29.exe";
6060

61-
private static final String locationOpera12 = "/home/opera12";
62-
private static final String locationOpera11 = "c:\\program files\\Opera11.exe";
63-
6461
private static Hub hub;
6562
private static Registry registry;
6663
private static SelfRegisteringRemote remote;
@@ -107,22 +104,6 @@ public static void prepare() throws Exception {
107104
caps.setVersion("30");
108105
remote.addBrowser(caps, 1);
109106

110-
// opera
111-
112-
caps = DesiredCapabilities.opera();
113-
caps.setCapability("opera_binary", locationOpera12);
114-
caps.setVersion("12");
115-
remote.addBrowser(caps, 1);
116-
caps = DesiredCapabilities.opera();
117-
caps.setCapability("opera_binary", locationOpera11);
118-
caps.setVersion("11");
119-
remote.addBrowser(caps, 1);
120-
caps = DesiredCapabilities.opera();
121-
caps.setCapability("opera_binary", "should be overwritten");
122-
caps.setVersion("10");
123-
remote.addBrowser(caps, 1);
124-
125-
126107
remote.startRemoteServer();
127108
remote.sendRegistrationRequest();
128109
RegistryTestHelper.waitForNode(registry, 1);
@@ -163,33 +144,6 @@ public void testBrowserLocations() throws MalformedURLException {
163144
newSessionRequest.getSession().getRequestedCapabilities()
164145
.get(FirefoxDriver.BINARY));
165146

166-
// opera
167-
168-
req_caps = new HashMap<String, Object>();
169-
req_caps.put(CapabilityType.BROWSER_NAME, BrowserType.OPERA);
170-
req_caps.put(CapabilityType.VERSION, "11");
171-
newSessionRequest = new MockedRequestHandler(getNewRequest(req_caps));
172-
newSessionRequest.process();
173-
assertEquals(locationOpera11,
174-
newSessionRequest.getSession().getRequestedCapabilities().get("opera.binary"));
175-
176-
req_caps = new HashMap<String, Object>();
177-
req_caps.put(CapabilityType.BROWSER_NAME, BrowserType.OPERA);
178-
req_caps.put(CapabilityType.VERSION, "12");
179-
newSessionRequest = new MockedRequestHandler(getNewRequest(req_caps));
180-
newSessionRequest.process();
181-
assertEquals(locationOpera12,
182-
newSessionRequest.getSession().getRequestedCapabilities().get("opera.binary"));
183-
184-
req_caps = new HashMap<String, Object>();
185-
req_caps.put(CapabilityType.BROWSER_NAME, BrowserType.OPERA);
186-
req_caps.put(CapabilityType.VERSION, "10");
187-
req_caps.put("opera.binary", "custom");
188-
newSessionRequest = new MockedRequestHandler(getNewRequest(req_caps));
189-
newSessionRequest.process();
190-
assertEquals("custom",
191-
newSessionRequest.getSession().getRequestedCapabilities().get("opera.binary"));
192-
193147
// chrome
194148

195149
req_caps = new HashMap<String, Object>();

0 commit comments

Comments
 (0)
Please sign in to comment.