Skip to content

Commit

Permalink
fix option locators pt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
toddtarsi committed Apr 3, 2024
1 parent bf959d4 commit 0968f8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/side-runtime/src/webdriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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})`),
}
Expand Down

0 comments on commit 0968f8c

Please sign in to comment.