Skip to content

Commit 908c328

Browse files
authored
Merge pull request #22 from Badgerati/develop
v1.1.2
2 parents 602aae6 + f9ebc51 commit 908c328

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

LICENSE.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) [2016-2019] [Matthew Kelly]
3+
Copyright (c) [2016-2020] [Matthew Kelly]
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

src/Monocle.psd1

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
RootModule = 'Monocle.psm1'
1212

1313
# Version number of this module.
14-
ModuleVersion = '1.1.1'
14+
ModuleVersion = '1.1.2'
1515

1616
# ID used to uniquely identify this module
1717
GUID = '9dc3c8a1-664d-4253-a5d2-920250d3a15f'
@@ -20,7 +20,7 @@
2020
Author = 'Matthew Kelly (Badgerati)'
2121

2222
# Copyright statement for this module
23-
Copyright = 'Copyright (c) 2016-2019 Matthew Kelly (Badgerati), licensed under the MIT License.'
23+
Copyright = 'Copyright (c) 2016-2020 Matthew Kelly (Badgerati), licensed under the MIT License.'
2424

2525
# Description of the functionality provided by this module
2626
Description = 'PowerShell Web Automation module, made to make automating and testing websites easier'

src/Public/Elements.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ function Test-MonocleElement
209209
}
210210
catch { }
211211

212-
return (($null -eq $result) -or ($null -ne $result.Element))
212+
return (($null -ne $result) -and ($null -ne $result.Element))
213213
}
214214

215215
function Get-MonocleElement
@@ -373,4 +373,4 @@ function Invoke-MonocleElementCheck
373373
}
374374

375375
Start-MonocleSleepWhileBusy
376-
}
376+
}

src/Public/Misc.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function Save-MonocleImage
4141
{
4242
[CmdletBinding()]
4343
param (
44-
[Parameter(Mandatory=$true)]
44+
[Parameter(Mandatory=$true, ValueFromPipeline=$true)]
4545
[OpenQA.Selenium.IWebElement]
4646
$Element,
4747

@@ -112,4 +112,4 @@ function Invoke-MonocleJavaScript
112112
)
113113

114114
$Browser.ExecuteScript($Script, $Arguments)
115-
}
115+
}

0 commit comments

Comments
 (0)