File tree 3 files changed +8
-1
lines changed
javascript/node/selenium-webdriver
3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change
1
+ ## v2.46.1
2
+
3
+ * Fixed internal module loading on Windows.
4
+
1
5
## v2.46.0
2
6
3
7
* Exposed a new logging API via the ` webdriver.logging ` module. For usage, see
Original file line number Diff line number Diff line change @@ -98,6 +98,9 @@ function Context(opt_configureForTesting) {
98
98
CLOSURE_BASE_PATH : path . dirname ( CLOSURE_BASE_FILE_PATH ) + '/' ,
99
99
CLOSURE_IMPORT_SCRIPT : function ( src , opt_srcText ) {
100
100
if ( opt_srcText !== undefined ) {
101
+ // Windows paths use backslashes, which must be properly escaped before
102
+ // evaluated with vm.runInContext.
103
+ opt_srcText = opt_srcText . replace ( / \\ / g, '/' ) ;
101
104
vm . runInContext ( opt_srcText , closure , src ) ;
102
105
} else {
103
106
loadScript ( src ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " selenium-webdriver" ,
3
- "version" : " 2.46.0 " ,
3
+ "version" : " 2.46.1 " ,
4
4
"description" : " The official WebDriver JavaScript bindings from the Selenium project" ,
5
5
"keywords" : [
6
6
" automation" ,
You can’t perform that action at this time.
0 commit comments