Skip to content

Commit fe171bd

Browse files
authored
Merge pull request #1 from adamdriscoll/master
Sync with upstream #1
2 parents 9c5446e + 36b6948 commit fe171bd

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

Selenium.psd1

-4.47 KB
Binary file not shown.

Selenium.psm1

Lines changed: 6 additions & 4 deletions
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-SeInternetExplorer {
35+
New-Object -TypeName "OpenQA.Selenium.IE.InternetExplorerDriver"
36+
}
37+
3338
function Start-SeFirefox {
3439
param([Switch]$Profile)
3540

@@ -81,9 +86,7 @@ function Find-SeElement {
8186
[Parameter(ParameterSetName = "ByTagName")]
8287
$TagName,
8388
[Parameter(ParameterSetName = "ByXPath")]
84-
$XPath,
85-
[Parameter(ParameterSetName = "ByCss")]
86-
$Css
89+
$XPath
8790
)
8891

8992

@@ -153,7 +156,6 @@ function Invoke-SeClick {
153156
$Element.Click()
154157
}
155158

156-
157159
}
158160

159161
function Get-SeKeys {

Selenium.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Import-Module (Join-Path $PSScriptRoot "Selenium.psm1")
1+
Import-Module (Join-Path $PSScriptRoot "Selenium.psd1") -Force
22

33
Describe "Get-SeCookie" {
44
$Driver = Start-SeFirefox

0 commit comments

Comments
 (0)