Skip to content

Commit 0968f8c

Browse files
committed
fix option locators pt 2
1 parent bf959d4 commit 0968f8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/side-runtime/src/webdriver.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,11 +2019,11 @@ const OPTIONS_LOCATORS = {
20192019
switch (type) {
20202020
case 'mostly-equals':
20212021
return By.xpath(
2022-
`//option[normalize-space(translate(., '${nbsp}', ' ')) = '${labelBody}']`
2022+
`.//option[normalize-space(translate(., '${nbsp}', ' ')) = '${labelBody}']`
20232023
)
20242024
}
20252025
}
2026-
return By.xpath(`//option[. = '${label}']`)
2026+
return By.xpath(`.//option[. = '${label}']`)
20272027
},
20282028
index: (index: string) => By.css(`*:nth-child(${index})`),
20292029
}

0 commit comments

Comments
 (0)