Skip to content

Commit 76e033a

Browse files
committed
[js] Text the correct value for element interaction tests
1 parent f09bbed commit 76e033a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/javascript/test/elements/interactions.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ suite(function (env) {
1919
let inputField = await driver.findElement(By.name('no_type'));
2020
await inputField.clear();
2121
await inputField.sendKeys('Selenium');
22-
assert.strictEqual(await inputField.getText(), "Selenium");
22+
const text = await inputField.getAttribute('value');
23+
assert.strictEqual(text, "Selenium");
2324
} catch (e) {
2425
console.log(e)
2526
}

0 commit comments

Comments
 (0)