Skip to content

Commit d92c5a6

Browse files
committed
[JS] Remove opera support from JS bindings #10379
1 parent 94b0d2c commit d92c5a6

5 files changed

Lines changed: 0 additions & 503 deletions

File tree

javascript/node/selenium-webdriver/index.js

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ const safari = require('./safari')
3838
const session = require('./lib/session')
3939
const until = require('./lib/until')
4040
const webdriver = require('./lib/webdriver')
41-
const opera = require('./opera')
4241

4342
const Browser = capabilities.Browser
4443
const Capabilities = capabilities.Capabilities
@@ -232,12 +231,6 @@ class Builder {
232231

233232
/** @private {http.Agent} */
234233
this.agent_ = null
235-
236-
/** @private {opera.Options} */
237-
this.operaOptions_ = null
238-
239-
/** @private {remote.DriverService.Builder} */
240-
this.operaService_ = null
241234
}
242235

243236
/**
@@ -432,20 +425,6 @@ class Builder {
432425
return this
433426
}
434427

435-
/**
436-
* Sets Opera specific {@linkplain opera.Options options} for drivers
437-
* created by this builder. Any logging or proxy settings defined on the given
438-
* options will take precedence over those set through
439-
* {@link #setLoggingPrefs} and {@link #setProxy}, respectively.
440-
*
441-
* @param {!opera.Options} options The OperaDriver options to use.
442-
* @return {!Builder} A self reference.
443-
*/
444-
setOperaOptions(options) {
445-
this.operaOptions_ = options
446-
return this
447-
}
448-
449428
/**
450429
* @return {chrome.Options} the Chrome specific options currently configured
451430
* for this builder.
@@ -560,21 +539,6 @@ class Builder {
560539
return this
561540
}
562541

563-
/**
564-
* Sets the {@link opera.ServiceBuilder} to use to manage the
565-
* operaDriver child process when creating sessions locally.
566-
*
567-
* @param {opera.ServiceBuilder} service the service to use.
568-
* @return {!Builder} a self reference.
569-
*/
570-
setOperaService(service) {
571-
if (service && !(service instanceof opera.ServiceBuilder)) {
572-
throw TypeError('not a opera.ServiceBuilder object')
573-
}
574-
this.operaService_ = service
575-
return this
576-
}
577-
578542
/**
579543
* Sets Safari specific {@linkplain safari.Options options} for drivers
580544
* created by this builder. Any logging settings defined on the given options
@@ -648,8 +612,6 @@ class Builder {
648612
capabilities.merge(this.safariOptions_)
649613
} else if (browser === Browser.EDGE && this.edgeOptions_) {
650614
capabilities.merge(this.edgeOptions_)
651-
} else if (browser === Browser.OPERA && this.operaOptions_) {
652-
capabilities.merge(this.operaOptions_)
653615
}
654616

655617
checkOptions(
@@ -736,14 +698,6 @@ class Builder {
736698
return createDriver(edge.Driver, capabilities, service)
737699
}
738700

739-
case Browser.OPERA: {
740-
let service = null
741-
if (this.operaService_) {
742-
service = this.operaService_.build()
743-
}
744-
return createDriver(opera.Driver, capabilities, service)
745-
}
746-
747701
case Browser.SAFARI:
748702
return createDriver(safari.Driver, capabilities)
749703

javascript/node/selenium-webdriver/lib/capabilities.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ const Browser = {
3434
FIREFOX: 'firefox',
3535
INTERNET_EXPLORER: 'internet explorer',
3636
SAFARI: 'safari',
37-
OPERA: 'opera',
3837
}
3938

4039
/**
@@ -282,13 +281,6 @@ class Capabilities {
282281
return new Capabilities().setBrowserName(Browser.SAFARI)
283282
}
284283

285-
/**
286-
* @return {!Capabilities} A basic set of capabilities for Opera
287-
*/
288-
static opera() {
289-
return new Capabilities().setBrowserName(Browser.OPERA)
290-
}
291-
292284
/**
293285
* @return {!Object<string, ?>} The JSON representation of this instance.
294286
* Note, the returned object may contain nested promised values.

0 commit comments

Comments
 (0)