@@ -38,7 +38,6 @@ const safari = require('./safari')
3838const session = require ( './lib/session' )
3939const until = require ( './lib/until' )
4040const webdriver = require ( './lib/webdriver' )
41- const opera = require ( './opera' )
4241
4342const Browser = capabilities . Browser
4443const 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
0 commit comments