# scripted-browser

> A local runner for the New Relic Synthetics Scripted Browser

Latest version **0.0.4** (published 2016-03-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install scripted-browser
pnpm add scripted-browser
yarn add scripted-browser
bun add scripted-browser
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2016-03-11 |
| First published | 2016-03-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | v5.5.0 |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 5 |
| Author | https://github.com/kirkstrobeck/scripted-browser/graphs/contributors |
| Maintainers | kirkstrobeck |
| Keywords | new relic, synthetics, scripted, browser, monitors, selenium, runner, driver, webdriver, chrome |

## Links

- npm: https://www.npmjs.com/package/scripted-browser
- Repository: https://github.com/kirkstrobeck/scripted-browser
- Issues: https://github.com/kirkstrobeck/scripted-browser/issues
- npm.io page: https://npm.io/package/scripted-browser

## Dependencies (4)

- [minimist](https://npm.io/package/minimist.md) ^1.2.0
- [chromedriver](https://npm.io/package/chromedriver.md) ^2.21.2
- [strict-version](https://npm.io/package/strict-version.md) latest
- [selenium-webdriver](https://npm.io/package/selenium-webdriver.md) ^2.52.0

## Alternatives

- [@snazzah/davey](https://npm.io/package/@snazzah/davey.md) — 1.5M weekly downloads
- [@vendure/testing](https://npm.io/package/@vendure/testing.md) — 8.3K weekly downloads
- [vue-simple-context-menu](https://npm.io/package/vue-simple-context-menu.md) — 6.6K weekly downloads
- [cypress-webpack-preprocessor-v5](https://npm.io/package/cypress-webpack-preprocessor-v5.md) — 2.1K weekly downloads
- [@backstage/plugin-catalog-backend-module-puppetdb](https://npm.io/package/@backstage/plugin-catalog-backend-module-puppetdb.md) — 1.3K weekly downloads

## Recent versions

- 0.0.4 (latest) — 2016-03-11
- 0.0.3 — 2016-03-11
- 0.0.2 — 2016-03-11
- 0.0.1 — 2016-03-11

## README

# Scripted Browser

**A local runner for the New Relic Synthetics Scripted Browser**

[![Circle CI](https://circleci.com/gh/kirkstrobeck/scripted-browser.svg?style=svg)](https://circleci.com/gh/kirkstrobeck/scripted-browser)

[New Relic](http://newrelic.com/) came up with a solution for running [Selenium](http://www.seleniumhq.org/) on a scheduled frequency. It also features a performance dashboard and a data-driven SLA. This is a new feature offered under their [Synthecits] monitoring suite called Scripting Monitors. The Selenium runner monitor type is called a “[Scripted Browser](https://docs.newrelic.com/docs/synthetics/new-relic-synthetics/scripting-monitors/write-scripted-browsers#overview).”

Scripted Browser uses a [syntax](https://docs.newrelic.com/docs/synthetics/new-relic-synthetics/scripting-monitors/scripted-browser-examples) for the runner that is unique to New Relic.

```js
//Visit https://docs.newrelic.com
$browser.get("https://docs.newrelic.com");
```

Since Selenium testing is difficult locally, it’s 100X that as a website. I needed a local runner for their syntax, so it could be a copy-paste implementation.

### Usage

```bash
npm install scripted-browser
```

This project has a detailed example in `./example`. To run the example, `cd` into that directory, `npm_install`, and run commands from there.

#### Run

To run a test out of the `./spec` folder

```bash
node node_modules/scripted-browser --run=search-a-website
```

---
_Source: https://npm.io/package/scripted-browser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
