File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
[System.Reflection.Assembly ]::LoadFrom(" $PSScriptRoot \assemblies\WebDriver.dll" )
2
2
[System.Reflection.Assembly ]::LoadFrom(" $PSScriptRoot \assemblies\WebDriver.Support.dll" )
3
+
3
4
function Start-SeChrome {
4
5
Param (
5
6
[Parameter (Mandatory = $false )]
@@ -30,6 +31,10 @@ function Start-SeChrome {
30
31
New-Object - TypeName " OpenQA.Selenium.Chrome.ChromeDriver" - ArgumentList $Chrome_Options
31
32
}
32
33
34
+ function Start-SeInternetExplorer {
35
+ New-Object - TypeName " OpenQA.Selenium.IE.InternetExplorerDriver"
36
+ }
37
+
33
38
function Start-SeFirefox {
34
39
param ([Switch ]$Profile )
35
40
@@ -81,9 +86,7 @@ function Find-SeElement {
81
86
[Parameter (ParameterSetName = " ByTagName" )]
82
87
$TagName ,
83
88
[Parameter (ParameterSetName = " ByXPath" )]
84
- $XPath ,
85
- [Parameter (ParameterSetName = " ByCss" )]
86
- $Css
89
+ $XPath
87
90
)
88
91
89
92
@@ -153,7 +156,6 @@ function Invoke-SeClick {
153
156
$Element.Click ()
154
157
}
155
158
156
-
157
159
}
158
160
159
161
function Get-SeKeys {
Original file line number Diff line number Diff line change 1
- Import-Module (Join-Path $PSScriptRoot " Selenium.psm1 " )
1
+ Import-Module (Join-Path $PSScriptRoot " Selenium.psd1 " ) - Force
2
2
3
3
Describe " Get-SeCookie" {
4
4
$Driver = Start-SeFirefox
You can’t perform that action at this time.
0 commit comments