Skip to content

Possible to run inside a Job? #34

Closed
@wicked1133

Description

@wicked1133

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
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions