File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
javascript/node/selenium-webdriver/test Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -389,12 +389,12 @@ suite(function (env) {
389389 it ( 'should combine filters' , async function ( ) {
390390 await driver . get ( Pages . relativeLocators )
391391
392- let elements = await driver . findElements ( withTagName ( 'td' ) . above ( By . id ( 'center' ) ) . toRightOf ( By . id ( 'second ' ) ) )
392+ let elements = await driver . findElements ( withTagName ( 'td' ) . above ( By . id ( 'center' ) ) . toRightOf ( By . id ( 'top ' ) ) )
393393 let ids = [ ]
394394 for ( let i = 0 ; i < elements . length ; i ++ ) {
395395 ids . push ( await elements [ i ] . getAttribute ( 'id' ) )
396396 }
397- assert . notDeepStrictEqual ( ids . indexOf ( 'third ' ) , - 1 , `Elements are ${ ids } ` )
397+ assert . notDeepStrictEqual ( ids . indexOf ( 'topRight ' ) , - 1 , `Elements are ${ ids } ` )
398398 } )
399399 } )
400400
@@ -408,8 +408,8 @@ suite(function (env) {
408408
409409 it ( 'should combine filters' , async function ( ) {
410410 await driver . get ( Pages . relativeLocators )
411- let element = await driver . findElement ( withTagName ( 'td' ) . above ( By . id ( 'center' ) ) . toRightOf ( By . id ( 'second ' ) ) )
412- assert . deepStrictEqual ( await element . getAttribute ( 'id' ) , `third ` )
411+ let element = await driver . findElement ( withTagName ( 'td' ) . above ( By . id ( 'center' ) ) . toRightOf ( By . id ( 'top ' ) ) )
412+ assert . deepStrictEqual ( await element . getAttribute ( 'id' ) , `topRight ` )
413413 } )
414414
415415 it ( 'should search by passing in a by object' , async function ( ) {
You can’t perform that action at this time.
0 commit comments