Skip to content

Error when using length option on checkboxes #38

@jennifer-shehane

Description

@jennifer-shehane

When getting a collection of checkboxes, if I pass a length option, this error is thrown:

Error: the domexception "InvalidStateError: Failed to read the 'selectionStart' property from
'HTMLInputElement': The input element's type ('radio') does not support selection."

Example Code

it "has teams checked", ->
  cy.get(".teams-component").find(":checked", {length: 2})

Command Log
screen shot 2015-05-14 at 11 36 56 am

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions