You are here

public function BrowserConfigurationTrait::jsErrors in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/jcalderonzumba/gastonjs/src/Browser/BrowserConfigurationTrait.php \Zumba\GastonJS\Browser\BrowserConfigurationTrait::jsErrors()

Set whether to fail or not on javascript errors found on the page

Parameters

bool $enabled:

Return value

bool

File

vendor/jcalderonzumba/gastonjs/src/Browser/BrowserConfigurationTrait.php, line 16

Class

BrowserConfigurationTrait
Trait BrowserConfigurationTrait @package Zumba\GastonJS\Browser

Namespace

Zumba\GastonJS\Browser

Code

public function jsErrors($enabled = true) {
  return $this
    ->command('set_js_errors', $enabled);
}