Skip to content

Latest commit

 

History

History
123 lines (92 loc) · 2.26 KB

Get-SeElement.md

File metadata and controls

123 lines (92 loc) · 2.26 KB
external help file Module Name online version schema
Selenium-help.xml
Selenium
2.0.0

Get-SeElement

SYNOPSIS

Finds all IWebElements within the current context using the given mechanism

SYNTAX

Get-SeElement [-By <String>] [-Selection] <String> [[-Timeout] <Int32>] [[-Target] <Object>] [-Wait]
 [<CommonParameters>]

DESCRIPTION

Finds all IWebElements within the current context using the given mechanism

EXAMPLES

Example 1

PS C:\> Get-SeElement -By Name -Selection 'username'

Get the username field by name

PARAMETERS

-By

The locating mechanism to use

Type: String
Parameter Sets: (All)
Aliases:
Accepted values: CssSelector, Name, Id, ClassName, LinkText, PartialLinkText, TagName, XPath

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Selection

String Identifier of the object to find

Type: String
Parameter Sets: (All)
Aliases: CssSelector, Name, Id, ClassName, LinkText, PartialLinkText, TagName, XPath

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Target

Target webdriver

Type: Object
Parameter Sets: (All)
Aliases: Element, Driver

Required: False
Position: 3
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Timeout

Timeout (in seconds)

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Wait

Set Timeout to 30 seconds (Will not override Timeout value if already defined)

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.Object

OUTPUTS

System.Object

NOTES

RELATED LINKS