File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545 // about an undefined symbol.
4646 window . webdriver = { } ;
4747
48- var scripts = document . getElementsByTagName ( 'script' ) ;
49- var directoryPath = './' ;
50- var thisFile = 'webdriver-bootstrap.js' ;
48+ let scripts = document . getElementsByTagName ( 'script' ) ;
49+ let directoryPath = './' ;
50+ let thisFile = 'webdriver-bootstrap.js' ;
5151
52- for ( var i = 0 ; i < scripts . length ; i ++ ) {
53- var src = scripts [ i ] . src ;
54- var len = src . length ;
52+ for ( let i = 0 ; i < scripts . length ; i ++ ) {
53+ let src = scripts [ i ] . src ;
54+ let len = src . length ;
5555 if ( src . substr ( len - thisFile . length ) == thisFile ) {
56- directoryPath = src . substr ( 0 , len - thisFile . length ) ;
56+ directoryPath = src . substr ( 0 , len - thisFile . length ) ;
5757 break ;
5858 }
5959 }
6060
6161 // All of the files to load. Files are specified in the order they must be
6262 // loaded, NOT alphabetical order.
63- var webdriverFiles = [
63+ const webdriverFiles = [
6464 '../../third_party/closure/goog/base.js' ,
6565 'deps.js'
6666 ] ;
6767
68- for ( var j = 0 ; j < webdriverFiles . length ; j ++ ) {
68+ for ( let j = 0 ; j < webdriverFiles . length ; j ++ ) {
6969 document . write ( '<script type="text/javascript" src="' +
7070 directoryPath + webdriverFiles [ j ] + '"></script>' ) ;
7171 }
You can’t perform that action at this time.
0 commit comments