File tree Expand file tree Collapse file tree 11 files changed +963
-23
lines changed
javascript/node/selenium-webdriver Expand file tree Collapse file tree 11 files changed +963
-23
lines changed Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ Builder.prototype.setProxy = function(config) {
246
246
/**
247
247
* Sets the logging preferences for the created session. Preferences may be
248
248
* changed by repeated calls, or by calling {@link #withCapabilities}.
249
- * @param {!(webdriver. logging.Preferences|Object. <string, string>) } prefs The
249
+ * @param {!(./lib/ logging.Preferences|Object<string, string>) } prefs The
250
250
* desired logging preferences.
251
251
* @return {!Builder } A self reference.
252
252
*/
Original file line number Diff line number Diff line change @@ -387,7 +387,7 @@ var Options = function() {
387
387
/** @private {!Array.<(string|!Buffer)>} */
388
388
this . extensions_ = [ ] ;
389
389
390
- /** @private {?webdriver. logging.Preferences} */
390
+ /** @private {?./lib/ logging.Preferences} */
391
391
this . logPrefs_ = null ;
392
392
393
393
/** @private {?webdriver.ProxyConfig} */
@@ -530,7 +530,7 @@ Options.prototype.setUserPreferences = function(prefs) {
530
530
531
531
/**
532
532
* Sets the logging preferences for the new session.
533
- * @param {!webdriver. logging.Preferences } prefs The logging preferences.
533
+ * @param {!./lib/ logging.Preferences } prefs The logging preferences.
534
534
* @return {!Options } A self reference.
535
535
*/
536
536
Options . prototype . setLoggingPrefs = function ( prefs ) {
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ var Options = function() {
119
119
/** @private {Binary} */
120
120
this . binary_ = null ;
121
121
122
- /** @private {webdriver. logging.Preferences} */
122
+ /** @private {./lib/ logging.Preferences} */
123
123
this . logPrefs_ = null ;
124
124
125
125
/** @private {webdriver.ProxyConfig} */
@@ -162,7 +162,7 @@ Options.prototype.setBinary = function(binary) {
162
162
163
163
/**
164
164
* Sets the logging preferences for the new session.
165
- * @param {webdriver. logging.Preferences } prefs The logging preferences.
165
+ * @param {./lib/ logging.Preferences } prefs The logging preferences.
166
166
* @return {!Options } A self reference.
167
167
*/
168
168
Options . prototype . setLoggingPreferences = function ( prefs ) {
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const url = require('url');
28
28
const error = require ( '../error' ) ;
29
29
const base = require ( '../lib/_base' ) ;
30
30
const cmd = require ( '../lib/command' ) ;
31
- const logging = base . require ( 'webdriver. logging' ) ;
31
+ const logging = require ( '../lib/ logging' ) ;
32
32
33
33
34
34
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ var builder = require('./builder');
24
24
var error = require ( './error' ) ;
25
25
var base = require ( './lib/_base' ) ;
26
26
var command = require ( './lib/command' ) ;
27
+ var logging = require ( './lib/logging' ) ;
27
28
28
29
29
30
// NOTE: the remainder of this file is nasty and verbose, but the annotations
@@ -114,10 +115,7 @@ exports.WebElementPromise = base.require('webdriver.WebElementPromise');
114
115
} ) ) ;
115
116
116
117
117
- /** @type {webdriver.logging. } */
118
- ( exports . __defineGetter__ ( 'logging' , function ( ) {
119
- return base . exportPublicApi ( 'webdriver.logging' ) ;
120
- } ) ) ;
118
+ exports . logging = logging ;
121
119
122
120
123
121
/** @type {webdriver.promise. } */
Original file line number Diff line number Diff line change @@ -112,8 +112,9 @@ function Context(opt_configureForTesting) {
112
112
goog : { } ,
113
113
webdriver : {
114
114
get Command ( ) { return require ( './command' ) . Command ; } ,
115
- get CommandName ( ) { return require ( './command' ) . Name ; }
116
- // get CommandExecutor() { return require('./command').Executor; }
115
+ get CommandName ( ) { return require ( './command' ) . Name ; } ,
116
+ get CommandExecutor ( ) { return require ( './command' ) . Executor ; } ,
117
+ get logging ( ) { return require ( './logging' ) ; }
117
118
}
118
119
} ) ;
119
120
closure . window = closure . top = closure ;
@@ -132,7 +133,8 @@ function Context(opt_configureForTesting) {
132
133
133
134
let provide = closure . goog . provide ;
134
135
closure . goog . provide = function ( symbol ) {
135
- if ( symbol . startsWith ( 'webdriver.Command' ) ) {
136
+ if ( symbol . startsWith ( 'webdriver.Command' )
137
+ || symbol . startsWith ( 'webdriver.logging' ) ) {
136
138
return ;
137
139
}
138
140
provide ( symbol ) ;
You can’t perform that action at this time.
0 commit comments