Skip to content

Commit 100cdf7

Browse files
committed
Update Combined.tests.ps1
1 parent 5f2200a commit 100cdf7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Examples/Combined.tests.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,13 @@ $ModaltestCases = @(
5959
)
6060
$Global:BrowserOptHash = $TestCaseSettings[$env:DefaultBrowser].DefaultOptions
6161
$Global:BrowserOptText = Build-StringFromHash $BrowserOptHash
62-
$Global:SeDriver = $null
62+
6363
Describe "Testing the tailspin toys demo site at $env:SITE_URL" {
6464
BeforeAll {
6565
#Relying on environment variable to pick the browser. Capture ID for use in logs by requesting verbose and redirecting it.
66+
$Global:SeDriver = $null
6667
$BrowserID = SeOpen -URL $env:SITE_URL -Options $BrowserOptHash -Verbose 4>&1
68+
Write-Verbose "`$Global:SeDriver -eq `$null: $($Global:SeDriver -eq $null)"
6769
$BrowserID = ($BrowserID.Message -replace '^Opened ', '') + ' on ' + [System.Environment]::OSVersion.Platform
6870
}
6971
Context "in $BrowserID with settings ($BrowserOptText)" {

0 commit comments

Comments
 (0)