We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24153ec commit 2eed0c5Copy full SHA for 2eed0c5
javascript/node/selenium-webdriver/lib/select.js
@@ -191,7 +191,7 @@ class Select {
191
}
192
193
for (let option of options) {
194
- if ((await option.getAttribute('index')) === index.toString()) {
+ if ((await option.getProperty('index')) === index) {
195
await this.setSelected(option)
196
197
@@ -415,7 +415,7 @@ class Select {
415
416
417
418
419
if (await option.isSelected()) {
420
await option.click()
421
0 commit comments