Skip to content

Multiple classname selectors #4

@br441

Description

@br441

I'm trying to select only elements that have all of the specified classnames...

$results = Find-PupElements -Page $page -Selector ".w-full .text-left .rounded-lg .transition-all .duration-200 .border .group p-4 .text-gray-700 .hover:bg-gray-100 .border-gray-200 .hover:border-primary"

$results | ForEach-Object { $_.InnerHTML }

...yet I get this error...

Failed to execute 'querySelectorAll' on 'Document': '.w-full .text-left .rounded-lg .transition-all .duration-200 .border .group p-4 .text-gray-700 .hover:bg-gray-100 .border-gray-200 .hover:border-primary' is not a valid selector.

Is there a way to select multiple classnames?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions