3 namespace Zumba\GastonJS\Browser;
7 * Trait BrowserConfigurationTrait
8 * @package Zumba\GastonJS\Browser
10 trait BrowserConfigurationTrait {
12 * Set whether to fail or not on javascript errors found on the page
13 * @param bool $enabled
16 public function jsErrors($enabled = true) {
17 return $this->command('set_js_errors', $enabled);
21 * Set a blacklist of urls that we are not supposed to load
22 * @param array $blackList
25 public function urlBlacklist($blackList) {
26 return $this->command('set_url_blacklist', $blackList);
30 * Set the debug mode on the browser
34 public function debug($enable = false) {
35 $this->debug = $enable;
36 return $this->command('set_debug', $this->debug);