Skip to content

Commit b1e226e

Browse files
authored
Merge pull request #7 from chris-simpkins/master
Added command for IE driver initialization
2 parents c3ce393 + 195dd77 commit b1e226e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Selenium.psd1

-4.5 KB
Binary file not shown.

Selenium.psm1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[System.Reflection.Assembly]::LoadFrom("$PSScriptRoot\assemblies\WebDriver.dll")
22
[System.Reflection.Assembly]::LoadFrom("$PSScriptRoot\assemblies\WebDriver.Support.dll")
3+
34
function Start-SeChrome {
45
Param(
56
[Parameter(Mandatory = $false)]
@@ -30,6 +31,10 @@ function Start-SeChrome {
3031
New-Object -TypeName "OpenQA.Selenium.Chrome.ChromeDriver" -ArgumentList $Chrome_Options
3132
}
3233

34+
function Start-SeIe {
35+
New-Object -TypeName "OpenQA.Selenium.IE.InternetExplorerDriver"
36+
}
37+
3338
function Start-SeFirefox {
3439
param([Switch]$Profile)
3540

@@ -153,7 +158,6 @@ function Invoke-SeClick {
153158
$Element.Click()
154159
}
155160

156-
157161
}
158162

159163
function Get-SeKeys {

0 commit comments

Comments
 (0)