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 11[System.Reflection.Assembly ]::LoadFrom(" $PSScriptRoot \assemblies\WebDriver.dll" )
22[System.Reflection.Assembly ]::LoadFrom(" $PSScriptRoot \assemblies\WebDriver.Support.dll" )
3+
34function 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+
3338function 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
159161function 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
22
33Describe " Get-SeCookie" {
44 $Driver = Start-SeFirefox
You can’t perform that action at this time.
0 commit comments