trait BrowserConfigurationTrait in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/jcalderonzumba/gastonjs/src/Browser/BrowserConfigurationTrait.php \Zumba\GastonJS\Browser\BrowserConfigurationTrait
Trait BrowserConfigurationTrait @package Zumba\GastonJS\Browser
Hierarchy
- trait \Zumba\GastonJS\Browser\BrowserConfigurationTrait
File
- vendor/
jcalderonzumba/ gastonjs/ src/ Browser/ BrowserConfigurationTrait.php, line 10
Namespace
Zumba\GastonJS\BrowserView source
trait BrowserConfigurationTrait {
/**
* Set whether to fail or not on javascript errors found on the page
* @param bool $enabled
* @return bool
*/
public function jsErrors($enabled = true) {
return $this
->command('set_js_errors', $enabled);
}
/**
* Set a blacklist of urls that we are not supposed to load
* @param array $blackList
* @return bool
*/
public function urlBlacklist($blackList) {
return $this
->command('set_url_blacklist', $blackList);
}
/**
* Set the debug mode on the browser
* @param bool $enable
* @return bool
*/
public function debug($enable = false) {
$this->debug = $enable;
return $this
->command('set_debug', $this->debug);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BrowserConfigurationTrait:: |
public | function | Set the debug mode on the browser | |
BrowserConfigurationTrait:: |
public | function | Set whether to fail or not on javascript errors found on the page | |
BrowserConfigurationTrait:: |
public | function | Set a blacklist of urls that we are not supposed to load |