File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
javascript/node/selenium-webdriver Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -55,9 +55,7 @@ class Input {
5555 } ,
5656 }
5757
58- let response = await this . bidi . send ( command )
59-
60- return response
58+ return await this . bidi . send ( command )
6159 }
6260
6361 /**
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ test.suite(function (env) {
4444 await driver . wait ( until . stalenessOf ( toBeDeleted ) , 5000 )
4545 } )
4646
47- xit ( 'an element found in a different frame is stale' , async function ( ) {
47+ it ( 'an element found in a different frame is stale' , async function ( ) {
4848 await driver . get ( Pages . missedJsReferencePage )
4949
5050 var frame = await driver . findElement ( By . css ( 'iframe[name="inner"]' ) )
@@ -53,7 +53,7 @@ test.suite(function (env) {
5353 var el = await driver . findElement ( By . id ( 'oneline' ) )
5454 await driver . switchTo ( ) . defaultContent ( )
5555 return el . getText ( ) . then ( assert . fail , function ( e ) {
56- assert . ok ( e instanceof error . StaleElementReferenceError , `The error is ${ JSON . stringify ( e ) } ` )
56+ assert . ok ( e instanceof error . NoSuchElementError )
5757 } )
5858 } )
5959} )
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ test.suite(function (env) {
7575 assert . strictEqual ( await driver . getTitle ( ) , 'We Arrive Here' )
7676 } )
7777
78- xit ( 'can set the window position of the current window' , async function ( ) {
78+ it ( 'can set the window position of the current window' , async function ( ) {
7979 let { x, y } = await driver . manage ( ) . window ( ) . getRect ( )
8080 let newX = x + 10
8181 let newY = y + 10
@@ -90,7 +90,7 @@ test.suite(function (env) {
9090 await driver . wait ( forPositionToBe ( newX , newY ) , 1000 )
9191 } )
9292
93- xit ( 'can set the window position from a frame' , async function ( ) {
93+ it ( 'can set the window position from a frame' , async function ( ) {
9494 await driver . get ( test . Pages . iframePage )
9595
9696 let frame = await driver . findElement ( By . name ( 'iframe1-name' ) )
You can’t perform that action at this time.
0 commit comments