Skip to content

Commit 0adcc61

Browse files
authored
Merge pull request #27 from the-mentor/master
Add EdgeDriver and Start-SeEdge
2 parents 8f08b12 + 10bcdac commit 0adcc61

File tree

5 files changed

+22
-2
lines changed

5 files changed

+22
-2
lines changed

Selenium.psd1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RootModule = '.\Selenium.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '1.2'
15+
ModuleVersion = '1.3'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()
@@ -83,7 +83,8 @@ FunctionsToExport = @(
8383
"Set-SeCookie",
8484
"Start-SeChrome",
8585
"Start-SeFirefox",
86-
"Start-SeInternetExplorer"
86+
"Start-SeInternetExplorer",
87+
"Start-SeEdge",
8788
"Stop-SeDriver",
8889
"Wait-SeElementExists"
8990
)

Selenium.psm1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ function Start-SeInternetExplorer {
4040
New-Object -TypeName "OpenQA.Selenium.IE.InternetExplorerDriver"
4141
}
4242

43+
function Start-SeEdge {
44+
New-Object -TypeName "OpenQA.Selenium.Edge.EdgeDriver"
45+
}
46+
4347
function Start-SeFirefox {
4448
param([Switch]$Profile)
4549

Selenium.tests.ps1

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,20 @@ Describe "Start-SeFirefox" {
2121
}
2222
}
2323

24+
Describe "Start-SeEdge" {
25+
Context "Should Start Edge Driver" {
26+
$Driver = Start-SeEdge
27+
Stop-SeDriver $Driver
28+
}
29+
}
30+
31+
Describe "Start-SeInternetExplorer" {
32+
Context "Should Start InternetExplorer Driver" {
33+
$Driver = Start-SeInternetExplorer
34+
Stop-SeDriver $Driver
35+
}
36+
}
37+
2438
Describe "Get-SeCookie" {
2539
$Driver = Start-SeFirefox
2640
Context "Should get cookies from google" {

assemblies/MicrosoftWebDriver.exe

146 KB
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
6E8182697EA5189491B5519D8496A3392E43741B7C0515130F2F8205881D208E

0 commit comments

Comments
 (0)