Closed
Description
I have tried a simple test and want to run paralelle within Jobs. But somehow the Job just completes and doesnt run the script to the end.
Is it even possible to run inside a Job?
This is the simple testscript I am using:
Start-Job -Name test -ScriptBlock {
$Driver = Start-SeChrome
Enter-SeUrl https://google.com -Driver $Driver
if (Find-SeElement -Driver $Driver -ClassName "gLFyf") {
Write-Verbose -Message "Test successfull" -Verbose
} else {
Write-Verbose -Message "Test Error" -Verbose
}
#Stop-SeDriver $Driver
}