@@ -58,9 +58,6 @@ public class DefaultProxyFindsFirefoxLocationsTest {
58
58
private static final String locationChrome27 = "/home/chrome27" ;
59
59
private static final String locationChrome29 = "c:\\ program files\\ Chrome29.exe" ;
60
60
61
- private static final String locationOpera12 = "/home/opera12" ;
62
- private static final String locationOpera11 = "c:\\ program files\\ Opera11.exe" ;
63
-
64
61
private static Hub hub ;
65
62
private static Registry registry ;
66
63
private static SelfRegisteringRemote remote ;
@@ -107,22 +104,6 @@ public static void prepare() throws Exception {
107
104
caps .setVersion ("30" );
108
105
remote .addBrowser (caps , 1 );
109
106
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
-
126
107
remote .startRemoteServer ();
127
108
remote .sendRegistrationRequest ();
128
109
RegistryTestHelper .waitForNode (registry , 1 );
@@ -163,33 +144,6 @@ public void testBrowserLocations() throws MalformedURLException {
163
144
newSessionRequest .getSession ().getRequestedCapabilities ()
164
145
.get (FirefoxDriver .BINARY ));
165
146
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
-
193
147
// chrome
194
148
195
149
req_caps = new HashMap <String , Object >();
0 commit comments