{"id":20287942,"url":"https://github.com/arpit2438735/webdriver-selenium-hooks","last_synced_at":"2025-03-04T04:21:49.195Z","repository":{"id":147358094,"uuid":"79884120","full_name":"arpit2438735/webdriver-selenium-hooks","owner":"arpit2438735","description":null,"archived":false,"fork":false,"pushed_at":"2017-01-27T04:14:42.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-14T08:32:09.990Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arpit2438735.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":"contributing.md","funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-24T06:10:39.000Z","updated_at":"2017-01-24T06:18:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"b1923637-e0b1-4b1b-b8d6-8998ed7773ad","html_url":"https://github.com/arpit2438735/webdriver-selenium-hooks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arpit2438735%2Fwebdriver-selenium-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arpit2438735%2Fwebdriver-selenium-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arpit2438735%2Fwebdriver-selenium-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arpit2438735%2Fwebdriver-selenium-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arpit2438735","download_url":"https://codeload.github.com/arpit2438735/webdriver-selenium-hooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241781643,"owners_count":20019270,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T14:43:27.268Z","updated_at":"2025-03-04T04:21:49.068Z","avatar_url":"https://github.com/arpit2438735.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# webdriver-selenium-hooks\n\u003e Webdriver configuration hooks for starting and stopping selenium standalone server with PhantomJS.\n\n[![Build Status](http://img.shields.io/travis/wilmoore/node-wd-selenium-hooks.svg)](https://travis-ci.org/wilmoore/node-wd-selenium-hooks) [![Code Climate](https://codeclimate.com/github/wilmoore/node-wd-selenium-hooks/badges/gpa.svg)](https://codeclimate.com/github/wilmoore/node-wd-selenium-hooks) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)\n\n```shell\nnpm install wd-selenium-hooks --save-dev\n```\n\n\u003e You can also [download the files manually](https://github.com/wilmoore/node-wd-selenium-hooks/releases).\n\n## Copy of node-wd-selenium-hooks\n1. Because I or no one can't fork it.\n2. There is no development for a long time.\n\n###### npm stats\n\n[![npm](https://img.shields.io/npm/v/wd-selenium-hooks.svg)](https://www.npmjs.org/package/wd-selenium-hooks) [![NPM downloads](http://img.shields.io/npm/dm/wd-selenium-hooks.svg)](https://www.npmjs.org/package/wd-selenium-hooks) [![Dependency Status](https://gemnasium.com/wilmoore/node-wd-selenium-hooks.svg)](https://gemnasium.com/wilmoore/node-wd-selenium-hooks)\n\n## Usage\n\nIn your `wdio.config.js` add the following:\n\n```js\nvar selenium = require('wd-selenium-hooks')\n\nexports.config = {\n\n  onPrepare: function () {\n    selenium.onPrepare(this)\n  },\n\n  onComplete: function () {\n    selenium.onComplete(this)\n  }\n\n}\n```\n\n## API\n\n### `.onPrepare(this)`\n\nStarts the selenium server.\n\n###### arguments\n\n - `object (this)` Reference to the configuration.\n\n###### returns\n\n - `(Undefined)`\n\n### `.onComplete(this)`\n\nStops the selenium server.\n\n###### arguments\n\n - `object (this)` Reference to the configuration.\n\n###### returns\n\n - `(Undefined)`\n\n## Reference\n\n - [WebdriverIO Configuration](http://www.webdriver.io/guide/getstarted/configuration.html)\n\n## Alternatives\n\n - [Alternative approach using promises](https://gist.github.com/klamping/f48f3167775e483e712e)\n\n## Contributing\n\n\u003e SEE: [contributing.md](contributing.md)\n\n## Licenses\n\n[![GitHub license](https://img.shields.io/github/license/wilmoore/node-wd-selenium-hooks.svg)](https://github.com/wilmoore/node-wd-selenium-hooks/blob/master/license)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farpit2438735%2Fwebdriver-selenium-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farpit2438735%2Fwebdriver-selenium-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farpit2438735%2Fwebdriver-selenium-hooks/lists"}