Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e76c217

Browse files
Merge master into V4 (#108)
1 parent bfd8b3d commit e76c217

23 files changed

+1191
-473
lines changed

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ CI/LocalPostProcessing.ps1
33
Scratchpad.ps1
44
Output/testResults*.xml
55
Output/stats.json
6+
debug.log

‎ChangeLog.md‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,21 @@
66

77
- Added Markdown documentation (See Help subfolder) for all the cmdlets (PlatyPS is used behind the scene to maintain it)
88
- Added MAML embedded help that can be accessed through `Get-Help`(eg: `Get-Help Start-SeChrome -Examples`)
9+
- Added Get-SeUrl / Pop-SeUrl / Push-SeUrl / Set-SeUrl (Thanks @vexx32)
10+
11+
## Changed
12+
- Converted monolythic module into a scaffolded module through a Plaster template. Module will now have a debug version and a compiled version that need to be built with Invoke-Build. See the Debug folder for additional informations on how to debug.
13+
14+
- Open-SeUrl removed in favor of Set-SeUrl
15+
- Send-SeKeys won't return an exception if you send $null or empty strings.
16+
- Stop-SeDriver won't throw exceptions anymore when celled multiple times on a driver already closed.
917

1018
# 3.0.0 - 3/31/2020
1119

1220
## Changed
1321

1422
- Fixed issue with importing module in PSv5.1 - https://github.com/adamdriscoll/selenium-powershell/issues/69
1523
- Updated Chrome drivers
16-
- Converted monolythic module into a scaffolded module through a Plaster template. Module will now have a debug version and a compiled version that need to be built with Invoke-Build. See the Debug folder for additional informations on how to debug.
1724

1825
# 3.0.0-beta2 - 1/29/2020
1926

‎Help/Get-SeUrl.md‎

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
---
2+
external help file: Selenium-help.xml
3+
Module Name: Selenium
4+
online version:
5+
schema: 2.0.0
6+
---
7+
8+
# Get-SeUrl
9+
10+
## SYNOPSIS
11+
Retrieves the current URL of a target webdriver instance.
12+
13+
## SYNTAX
14+
15+
```
16+
Get-SeUrl [-Stack] [[-Target] <Object>] [<CommonParameters>]
17+
```
18+
19+
## DESCRIPTION
20+
Retrieves the current URL of a target webdriver instance, or the currently
21+
stored internal location stack.
22+
23+
## EXAMPLES
24+
25+
### EXAMPLE 1
26+
```
27+
Get-SeUrl
28+
```
29+
30+
Retrieves the current URL of the default webdriver instance.
31+
32+
## PARAMETERS
33+
34+
### -Stack
35+
Optionally retrieve the stored URL stack for the target or default
36+
webdriver instance.
37+
38+
```yaml
39+
Type: SwitchParameter
40+
Parameter Sets: (All)
41+
Aliases:
42+
43+
Required: False
44+
Position: Named
45+
Default value: False
46+
Accept pipeline input: False
47+
Accept wildcard characters: False
48+
```
49+
50+
### -Target
51+
The webdriver instance for which to retrieve the current URL or
52+
internal URL stack.
53+
54+
```yaml
55+
Type: Object
56+
Parameter Sets: (All)
57+
Aliases: Driver
58+
59+
Required: False
60+
Position: 1
61+
Default value: $Global:SeDriver
62+
Accept pipeline input: True (ByValue)
63+
Accept wildcard characters: False
64+
```
65+
66+
### CommonParameters
67+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
68+
69+
## INPUTS
70+
71+
## OUTPUTS
72+
73+
## NOTES
74+
When using -Stack, the retrieved stack will not contain any of the driver's
75+
history (Back/Forward) data.
76+
It only handles locations added with
77+
Push-SeUrl.
78+
79+
To utilise a driver's Back/Forward functionality, instead use Set-SeUrl.
80+
81+
## RELATED LINKS

‎Help/Open-SeUrl.md‎

Lines changed: 0 additions & 141 deletions
This file was deleted.

‎Help/Pop-SeUrl.md‎

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
external help file: Selenium-help.xml
3+
Module Name: Selenium
4+
online version:
5+
schema: 2.0.0
6+
---
7+
8+
# Pop-SeUrl
9+
10+
## SYNOPSIS
11+
Navigate back to the most recently pushed URL in the location stack.
12+
13+
## SYNTAX
14+
15+
```
16+
Pop-SeUrl [[-Target] <Object>] [<CommonParameters>]
17+
```
18+
19+
## DESCRIPTION
20+
Retrieves the most recently pushed URL from the location stack and navigates
21+
to that URL with the specified or default driver.
22+
23+
## EXAMPLES
24+
25+
### EXAMPLE 1
26+
```
27+
Pop-SeUrl
28+
```
29+
30+
Retrieves the most recently pushed URL and navigates back to that URL.
31+
32+
## PARAMETERS
33+
34+
### -Target
35+
{{ Fill Target Description }}
36+
37+
```yaml
38+
Type: Object
39+
Parameter Sets: (All)
40+
Aliases: Driver
41+
42+
Required: False
43+
Position: 1
44+
Default value: $Global:SeDriver
45+
Accept pipeline input: True (ByValue)
46+
Accept wildcard characters: False
47+
```
48+
49+
### CommonParameters
50+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
51+
52+
## INPUTS
53+
54+
## OUTPUTS
55+
56+
## NOTES
57+
A separate internal location stack is maintained for each driver instance
58+
by the module.
59+
This stack is completely separate from the driver's internal
60+
Back/Forward history logic.
61+
62+
To utilise a driver's Back/Forward functionality, instead use Set-SeUrl.
63+
64+
## RELATED LINKS

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /