diff --git a/packages/side-runtime/src/webdriver.ts b/packages/side-runtime/src/webdriver.ts index d52bc2c23..446f1d7b7 100644 --- a/packages/side-runtime/src/webdriver.ts +++ b/packages/side-runtime/src/webdriver.ts @@ -2019,11 +2019,11 @@ const OPTIONS_LOCATORS = { switch (type) { case 'mostly-equals': return By.xpath( - `//option[normalize-space(translate(., '${nbsp}', ' ')) = '${labelBody}']` + `.//option[normalize-space(translate(., '${nbsp}', ' ')) = '${labelBody}']` ) } } - return By.xpath(`//option[. = '${label}']`) + return By.xpath(`.//option[. = '${label}']`) }, index: (index: string) => By.css(`*:nth-child(${index})`), }