Closed qabrain closed 3 years ago
Context:
Command: npx folio .\xxx\xxx\ --param browserName=chromium --param headful
Code Snippet
Help us help you! Put down a short code snippet that illustrates your bug and that we can run and debug locally. For example:
//select service type async serviceType_select(serviceTypeToSelect: string) { return await this.page.selectOption('name="serviceType"', serviceTypeToSelect) }
Or, without inner quotes:
//select service type async serviceType_select(serviceTypeToSelect: string) { return await this.page.selectOption('name=serviceType', serviceTypeToSelect) }
Describe the bug
selectOption works fine with an id selector, but not with name attribute selector.
@dcleve333 there's no name= selector. We currently support only a handful of attribute selectors:
name=
id
data-testid
data-test-id
data-test
We have docs regarding this, but I admit they're not clear. Let us fix them!
Context:
Command: npx folio .\xxx\xxx\ --param browserName=chromium --param headful
Code Snippet
Help us help you! Put down a short code snippet that illustrates your bug and that we can run and debug locally. For example:
Or, without inner quotes:
Describe the bug
selectOption works fine with an id selector, but not with name attribute selector.