Skip to content

[Bug] - The switchTo() throws error when passing the strict locator #3846

@kobenguyent

Description

@kobenguyent

What are you trying to achieve?

The switchTo() accepts the css locator.

What do you get instead?

The switchTo() throws error when passing the css locator

I.switchTo({ css: 'iframe[id^=number-frame]' })
    I switch to {"css":"iframe[id^=number-frame]"}
 ERROR  locator.toLowerCase is not a function

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions