Skip to content

Commit b4def25

Browse files
#88 Remove Opera driver configuration
1 parent 6bc81e0 commit b4def25

File tree

6 files changed

+16
-66
lines changed

6 files changed

+16
-66
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -274,13 +274,13 @@ with help of `{env:VarName}` template insertions.
274274
}
275275
],
276276
"driver": { // Use "driver" for single driver support.
277-
"type": "chrome", // Supports: "remote", "chrome", "firefox", "internetexplorer", "safari", "opera", "edge" and custom mappers registered via DriverJsonMapperAliases.Register method.
277+
"type": "chrome", // Supports: "remote", "chrome", "firefox", "internetexplorer", "safari", "edge" and custom mappers registered via DriverJsonMapperAliases.Register method.
278278
// Custom RemoteWebDriver type can also be passed as a full type name, e.g.: "Namespace.Class, MyAssembly".
279279
"alias": "custom_alias", // Use aliases when you have several drivers of the same type.
280280
"remoteAddress": "http://127.0.0.1:8888/wd/hub", // Remote driver specific.
281281
"options": { // Configures driver options.
282282
"type": "chrome", // Remote driver specific.
283-
// Supports: chrome, firefox, internetexplorer, safari, opera, edge.
283+
// Supports: "chrome", "firefox", "internetexplorer", "safari", "edge".
284284
"loggingPreferences": { // Dictionary of logType and logLevel.
285285
// Invokes SetLoggingPreference method of DriverOptions for each item.
286286
"browser": "Info",
@@ -291,7 +291,7 @@ with help of `{env:VarName}` template insertions.
291291
"globalcap2": 5,
292292
"globalcap3": "str"
293293
},
294-
"additionalBrowserOptions": { // Chrome, Firefox, Edge, InternetExplorer and Opera specific.
294+
"additionalBrowserOptions": { // Chrome, Firefox, Edge and InternetExplorer specific.
295295
// Dictionary of additional browser options.
296296
"cap1": true,
297297
"cap2": 5,
@@ -308,10 +308,10 @@ with help of `{env:VarName}` template insertions.
308308
"proxyAutoConfigUrl": "string",
309309
"bypassAddresses": [ "string", "string" ]
310310
},
311-
"arguments": [ "string", "string" ], // Chrome, Firefox, Edge and Opera specific.
312-
"excludedArguments": [ "string", "string" ], // Chrome, Edge and Opera specific.
313-
"extensions": [ "string", "string" ], // Chrome, Edge and Opera specific.
314-
"encodedExtensions": [ "string", "string" ], // Chrome, Edge and Opera specific.
311+
"arguments": [ "string", "string" ], // Chrome, Firefox and Edge specific.
312+
"excludedArguments": [ "string", "string" ], // Chrome and Edge specific.
313+
"extensions": [ "string", "string" ], // Chrome and Edge specific.
314+
"encodedExtensions": [ "string", "string" ], // Chrome and Edge specific.
315315
"windowTypes": [ "string", "string" ], // Chrome and Edge specific.
316316
"performanceLoggingPreferences": { // Chrome and Edge specific.
317317
// Configures instance of OpenQA.Selenium.Chromium.ChromiumPerformanceLoggingPreferences type.
@@ -320,13 +320,13 @@ with help of `{env:VarName}` template insertions.
320320
"bufferUsageReportingInterval": "00:01:10",
321321
"tracingCategories": [ "string", "string" ]
322322
},
323-
"userProfilePreferences": { // Chrome, Edge and Opera specific.
323+
"userProfilePreferences": { // Chrome and Edge specific.
324324
// Dictionary of preferenceName and preferenceValue.
325325
// Invokes AddUserProfilePreference method of driver specific options (e.g., ChromeOptions) for each item.
326326
"pref1": false,
327327
"pref2": "str"
328328
},
329-
"localStatePreferences": { // Chrome, Edge and Opera specific.
329+
"localStatePreferences": { // Chrome and Edge specific.
330330
// Dictionary of preferenceName and preferenceValue.
331331
// Invokes AddLocalStatePreference method of driver specific options (e.g., ChromeOptions) for each item.
332332
"pref1": 2.7,

src/Atata.Configuration.Json/DriverOptionsJsonSection.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ public class DriverOptionsJsonSection : JsonSection
1111

1212
public JsonSection AdditionalOptions { get; set; }
1313

14-
// Chrome, Firefox, Edge, InternetExplorer and Opera specific.
14+
// Chrome, Firefox, Edge and InternetExplorer specific.
1515
public JsonSection AdditionalBrowserOptions { get; set; }
1616

1717
public ProxyJsonSection Proxy { get; set; }
1818

19-
// Chrome, Firefox, Edge and Opera specific.
19+
// Chrome, Firefox and Edge specific.
2020
public string[] Arguments { get; set; }
2121

22-
// Chrome, Edge and Opera specific.
22+
// Chrome and Edge specific.
2323
public string[] ExcludedArguments { get; set; }
2424

25-
// Chrome, Edge and Opera specific.
25+
// Chrome and Edge specific.
2626
public string[] Extensions { get; set; }
2727

28-
// Chrome, Edge and Opera specific.
28+
// Chrome and Edge specific.
2929
public string[] EncodedExtensions { get; set; }
3030

3131
// Chrome and Edge specific.
@@ -34,10 +34,10 @@ public class DriverOptionsJsonSection : JsonSection
3434
// Chrome and Edge specific.
3535
public DriverPerformanceLoggingPreferencesJsonSection PerformanceLoggingPreferences { get; set; }
3636

37-
// Chrome, Edge and Opera specific.
37+
// Chrome and Edge specific.
3838
public JsonSection UserProfilePreferences { get; set; }
3939

40-
// Chrome, Edge and Opera specific.
40+
// Chrome and Edge specific.
4141
public JsonSection LocalStatePreferences { get; set; }
4242

4343
// Firefox specific.

src/Atata.Configuration.Json/GlobalSuppressions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
[assembly: SuppressMessage("Design", "CA1000:Do not declare static members on generic types", Justification = "<Pending>", Scope = "member", Target = "~P:Atata.Configuration.Json.JsonConfig`1.Current")]
1919
[assembly: SuppressMessage("Performance", "CA1819:Properties should not return arrays", Justification = "<Pending>", Scope = "member", Target = "~P:Atata.Configuration.Json.DriverPerformanceLoggingPreferencesJsonSection.TracingCategories")]
2020
[assembly: SuppressMessage("Performance", "CA1819:Properties should not return arrays", Justification = "<Pending>", Scope = "member", Target = "~P:Atata.Configuration.Json.DriverProfileJsonSection.Extensions")]
21-
[assembly: SuppressMessage("Critical Code Smell", "S1541:Methods and properties should not be too complex", Justification = "<Pending>", Scope = "member", Target = "~M:Atata.Configuration.Json.OperaDriverJsonMapper.MapOptions(Atata.Configuration.Json.DriverOptionsJsonSection,OpenQA.Selenium.Opera.OperaOptions)")]
2221
[assembly: SuppressMessage("Major Code Smell", "S138:Functions should not have too many lines of code", Justification = "<Pending>", Scope = "member", Target = "~M:Atata.Configuration.Json.JsonConfigMapper.Map``1(``0,Atata.AtataContextBuilder)~Atata.AtataContextBuilder")]
2322
[assembly: SuppressMessage("Critical Code Smell", "S1541:Methods and properties should not be too complex", Justification = "<Pending>", Scope = "member", Target = "~M:Atata.Configuration.Json.JsonConfigMapper.Map``1(``0,Atata.AtataContextBuilder)~Atata.AtataContextBuilder")]
2423
[assembly: SuppressMessage("Critical Code Smell", "S1541:Methods and properties should not be too complex", Justification = "<Pending>", Scope = "member", Target = "~M:Atata.Configuration.Json.JsonConfigMapper.MapAttributes(Atata.Configuration.Json.AttributesJsonSection,Atata.AtataContextBuilder)")]

src/Atata.Configuration.Json/Mapping/DriverJsonMapperAliases.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ static DriverJsonMapperAliases()
1414
Register<FirefoxDriverJsonMapper>(DriverAliases.Firefox);
1515
Register<InternetExplorerDriverJsonMapper>(DriverAliases.InternetExplorer);
1616
Register<SafariDriverJsonMapper>(DriverAliases.Safari);
17-
Register<OperaDriverJsonMapper>(DriverAliases.Opera);
1817
Register<EdgeDriverJsonMapper>(DriverAliases.Edge);
1918
}
2019

src/Atata.Configuration.Json/Mapping/OperaDriverJsonMapper.cs

Lines changed: 0 additions & 46 deletions
This file was deleted.

src/Atata.Configuration.Json/Mapping/RemoteDriverJsonMapper.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ private static IDriverJsonMapper GetOptionsMapper(string typeName)
5050
return new InternetExplorerDriverJsonMapper();
5151
case DriverAliases.Safari:
5252
return new SafariDriverJsonMapper();
53-
case DriverAliases.Opera:
54-
return new OperaDriverJsonMapper();
5553
case DriverAliases.Edge:
5654
return new EdgeDriverJsonMapper();
5755
case null:

0 commit comments

Comments
 (0)