Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

page.selectOption: Unknown engine "name" while parsing selector name="serviceType" [BUG] #5615

Closed
qabrain opened this issue Feb 25, 2021 · 1 comment · Fixed by #5621
Closed
Assignees

Comments

@qabrain
Copy link

qabrain commented Feb 25, 2021

Context:

  • Playwright Version: 1.9.0 and 1.8.1
  • Operating System: windows
  • Node.js version: v14.15.4
  • Browser: Chromium
  • Extra: [any specific details about your environment]

Command: npx folio .\xxx\xxx<testname.spec.ts> --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.

@aslushnikov
Copy link
Collaborator

@dcleve333 there's no name= selector. We currently support only a handful of attribute selectors:

  • id
  • data-testid
  • data-test-id
  • data-test

We have docs regarding this, but I admit they're not clear. Let us fix them!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants