Content-Length: 267724 | pFad | https://github.com/adamdriscoll/selenium-powershell/issues/192

D1 Get-SeElement -Filter · Issue #192 · adamdriscoll/selenium-powershell · GitHub
Skip to content

Get-SeElement -Filter #192

@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









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/adamdriscoll/selenium-powershell/issues/192

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy