Skip to content

Get-SeElement -Filter #192

Closed
Closed
@itfranck

Description

@itfranck

This is equivalent to using

Get-SeElement -By TagName -Value Input -Attributes type  | Where {$_.attributes.type -eq 'email'} 
Get-SeElement -By TagName -Value input -Filter {$_.Attributes.type -eq 'email'} -Single -Timeout 4

with the exception that error handling is left to Get-SeElement, meaning that if no element is returned after the filter is applied, an error will be thrown. If the -Single switch is used and multiple elements are found, an error will be thrown.

Any attributes mentionned in the filter will be loaded even if not specified.
For instance, in the following statement, the type attribute will be loaded even though the -Attributes switch was not loaded.

Get-SeElement -By TagName -Value input -Filter {$_.Attributes.type -eq 'email'} -Single -Timeout 4

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy