CARVIEW |
Select Language
HTTP/2 200
server: GitHub.com
content-type: text/html; charset=utf-8
last-modified: Mon, 29 Jul 2024 17:43:22 GMT
access-control-allow-origin: *
etag: W/"66a7d4ba-28b7"
expires: Sat, 11 Oct 2025 02:32:40 GMT
cache-control: max-age=600
content-encoding: gzip
x-proxy-cache: MISS
x-github-request-id: 4BF6:135D5D:21AF5:2EB10:68E9BF70
accept-ranges: bytes
age: 0
date: Sat, 11 Oct 2025 02:22:41 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210049-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1760149361.796117,VS0,VE351
vary: Accept-Encoding
x-fastly-request-id: f0061c5d81e7ecab7365d9828ca6581ddf6b588b
content-length: 3017
Karma - Browsers
Heads Up! You're viewing the docs for v0.6, an old version of Karma.
v6.4 is the newest.
Browsers
Starting browsers #
Capturing browsers is kinda boring, so Testacular can do that for you. Just simply add into the configuration file:
browsers = ['Chrome'];
Then, Testacular will take care of autocapturing these browsers, as well as killing them.
Currently available browsers:
- Chrome
- ChromeCanary
- Safari
- Firefox
- Opera
- PhantomJS
- IE
Correct path to browser binary #
Testacular has some default paths, where to find these browsers. Check out launchers to see them.
You can override these settings by <BROWSER>_BIN
ENV variable,
or alternatively by creating a symlink
.
POSIX shells #
# Changing the path to the Chrome binary
$ export CHROME_BIN=/usr/local/bin/my-chrome-build
# Changing the path to the Chrome Canary binary
$ export CHROME_CANARY_BIN=/usr/local/bin/my-chrome-build
# Changing the path to the PhantomJs binary
$ export PHANTOMJS_BIN=$HOME/local/bin/phantomjs
Windows cmd.exe #
C:> SET IE_BIN=C:\Program Files\Internet Explorer\iexplore.exe
Windows Powershell #
$Env:FIREFOX_BIN = 'c:\Program Files (x86)\Mozilla Firefox 4.0 Beta 6\firefox.exe'
Custom browsers #
// in the testacular.conf.js
browsers = ['/usr/local/bin/custom-browser.sh'];
// from cli
testacular start --browsers /usr/local/bin/custom-browser.sh
The browser scripts need to take one argument, the url with id parameter to be used to connect to the server. The supplied id is used by the server to determine when the specific browser is captured.