Skip to content

Commit 48d2c2a

Browse files
committed
[javascript] Fixing two actions tests for Chrome
1 parent 482d5a4 commit 48d2c2a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ suite(function (env) {
143143
.move({ x: 100, y: 100, origin: Origin.POINTER })
144144
.release()
145145
.perform()
146+
await driver.wait(
147+
async () => await slide.getCssValue('left') === '101px', 5000)
146148
assert.strictEqual(await slide.getCssValue('left'), '101px')
147149
assert.strictEqual(await slide.getCssValue('top'), '101px')
148150
})
@@ -171,6 +173,8 @@ suite(function (env) {
171173

172174
await driver.actions().sendKeys('foobar').perform()
173175

176+
await driver.wait(
177+
async () => await el.getAttribute('value') === 'foobar', 5000)
174178
assert.strictEqual(await el.getAttribute('value'), 'foobar')
175179
})
176180

0 commit comments

Comments
 (0)