File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ webdriver.Builder = function(opt_window) {
58
58
/** @private {string} */
59
59
this . serverUrl_ =
60
60
/** @type {string } */ ( data . get ( webdriver . Builder . SERVER_URL_PARAM ,
61
- webdriver . Builder . DEFAULT_SERVER_URL ) ) ;
61
+ webdriver . Builder . DEFAULT_SERVER_URL ) ) . replace ( / \/ $ / , "" ) ;
62
62
63
63
/** @private {string} */
64
64
this . sessionId_ =
@@ -99,7 +99,7 @@ webdriver.Builder.DEFAULT_SERVER_URL = 'http://localhost:4444/wd/hub';
99
99
* @return {!webdriver.Builder } This Builder instance for chain calling.
100
100
*/
101
101
webdriver . Builder . prototype . usingServer = function ( url ) {
102
- this . serverUrl_ = url ;
102
+ this . serverUrl_ = url . replace ( / \/ $ / , "" ) ;
103
103
return this ;
104
104
} ;
105
105
You can’t perform that action at this time.
0 commit comments