Skip to content

Commit 283d0aa

Browse files
committed
[js] Fix javascript tests
1 parent 7f6fa4b commit 283d0aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

javascript/node/selenium-webdriver/test/element_finding_test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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 () {

0 commit comments

Comments
 (0)