Skip to content

Commit

Permalink
feat: add capabilities WithDisableAutomaticScreenshots `WithShouldT…
Browse files Browse the repository at this point in the history
  • Loading branch information
electricbubble committed Mar 27, 2021
1 parent 7e53e13 commit ff3f81d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions gwda.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,20 @@ func (caps Capabilities) WithShouldUseSingletonTestManager(b bool) Capabilities
return caps
}

// WithDisableAutomaticScreenshots
// Defaults to `true`
func (caps Capabilities) WithDisableAutomaticScreenshots(b bool) Capabilities {
caps["disableAutomaticScreenshots"] = b
return caps
}

// WithShouldTerminateApp
// Defaults to `true`
func (caps Capabilities) WithShouldTerminateApp(b bool) Capabilities {
caps["shouldTerminateApp"] = b
return caps
}

// WithEventloopIdleDelaySec
// Delays the invocation of '-[XCUIApplicationProcess setEventLoopHasIdled:]' by the timer interval passed.
// which is skipped on setting it to zero.
Expand Down

0 comments on commit ff3f81d

Please sign in to comment.