external help file | Module Name | online version | schema |
---|---|---|---|
Selenium-help.xml |
Selenium |
2.0.0 |
Finds all IWebElements within the current context using the given mechanism
Get-SeElement [-By <String>] [-Selection] <String> [[-Timeout] <Int32>] [[-Target] <Object>] [-Wait]
[<CommonParameters>]
Finds all IWebElements within the current context using the given mechanism
PS C:\> Get-SeElement -By Name -Selection 'username'
Get the username field by name
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
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 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 (in seconds)
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
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
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.