@@ -44,15 +44,15 @@ test.suite(function (env) {
4444 it ( 'can set size of the current window from frame' , async function ( ) {
4545 await driver . get ( test . Pages . framesetPage )
4646
47- var frame = await driver . findElement ( { css : 'frame[name="fourth"]' } )
47+ const frame = await driver . findElement ( { css : 'frame[name="fourth"]' } )
4848 await driver . switchTo ( ) . frame ( frame )
4949 await changeSizeBy ( - 20 , - 20 )
5050 } )
5151
5252 it ( 'can set size of the current window from iframe' , async function ( ) {
5353 await driver . get ( test . Pages . iframePage )
5454
55- var frame = await driver . findElement ( { css : 'iframe[name="iframe1-name"]' } )
55+ const frame = await driver . findElement ( { css : 'iframe[name="iframe1-name"]' } )
5656 await driver . switchTo ( ) . frame ( frame )
5757 await changeSizeBy ( - 20 , - 20 )
5858 } )
@@ -85,7 +85,7 @@ test.suite(function (env) {
8585 height : 480 ,
8686 } )
8787
88- return driver . wait ( forPositionToBe ( newX , newY ) , 1000 )
88+ await driver . wait ( forPositionToBe ( newX , newY ) , 1000 )
8989 } )
9090
9191 it ( 'can set the window position from a frame' , async function ( ) {
@@ -99,7 +99,7 @@ test.suite(function (env) {
9999 y += 10
100100
101101 await driver . manage ( ) . window ( ) . setRect ( { width : 640 , height : 480 , x, y } )
102- return driver . wait ( forPositionToBe ( x , y ) , 1000 )
102+ await driver . wait ( forPositionToBe ( x , y ) , 1000 )
103103 } )
104104
105105 it ( 'can open a new window' , async function ( ) {
@@ -136,7 +136,7 @@ test.suite(function (env) {
136136 if ( rect . width === width && rect . height === height ) {
137137 return
138138 }
139- return driver . wait ( forSizeToBe ( width , height ) , 1000 )
139+ return await driver . wait ( forSizeToBe ( width , height ) , 1000 )
140140 }
141141
142142 function forSizeToBe ( w , h ) {
0 commit comments