{"id":15270346,"url":"https://github.com/marketionist/protractor-cucumber-steps","last_synced_at":"2025-09-21T16:51:26.123Z","repository":{"id":13104329,"uuid":"73617511","full_name":"Marketionist/protractor-cucumber-steps","owner":"Marketionist","description":"Cucumber steps (step definitions) written with Protractor for e2e tests","archived":false,"fork":false,"pushed_at":"2022-12-07T17:56:18.000Z","size":401,"stargazers_count":22,"open_issues_count":10,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-09-21T11:20:28.663Z","etag":null,"topics":["cucumber","cucumber-features","cucumber-js","cucumber-steps","cucumber-tests","cucumberjs","e2e-tests","end-to-end-testing","protractor","selenium","test","webdriver"],"latest_commit_sha":null,"homepage":"","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/Marketionist.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}},"created_at":"2016-11-13T13:27:55.000Z","updated_at":"2025-06-25T16:34:07.000Z","dependencies_parsed_at":"2023-01-11T18:29:51.967Z","dependency_job_id":null,"html_url":"https://github.com/Marketionist/protractor-cucumber-steps","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/Marketionist/protractor-cucumber-steps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marketionist%2Fprotractor-cucumber-steps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marketionist%2Fprotractor-cucumber-steps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marketionist%2Fprotractor-cucumber-steps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marketionist%2Fprotractor-cucumber-steps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Marketionist","download_url":"https://codeload.github.com/Marketionist/protractor-cucumber-steps/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marketionist%2Fprotractor-cucumber-steps/sbom","scorecard":{"id":90230,"data":{"date":"2025-08-11","repo":{"name":"github.com/Marketionist/protractor-cucumber-steps","commit":"eafcddf284c9b60ffaeab5d8368d7c536da14d1f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/11 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 26 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"29 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-jg8v-48h5-wgxg","Warn: Project is vulnerable to: GHSA-36fh-84j7-cv5h","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-29xr-v42j-r956","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-776f-qx25-q3cc","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-15T07:46:47.795Z","repository_id":13104329,"created_at":"2025-08-15T07:46:47.795Z","updated_at":"2025-08-15T07:46:47.795Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276273603,"owners_count":25614216,"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","status":"online","status_checked_at":"2025-09-21T02:00:07.055Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cucumber","cucumber-features","cucumber-js","cucumber-steps","cucumber-tests","cucumberjs","e2e-tests","end-to-end-testing","protractor","selenium","test","webdriver"],"created_at":"2024-09-30T07:08:31.564Z","updated_at":"2025-09-21T16:51:26.082Z","avatar_url":"https://github.com/Marketionist.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# protractor-cucumber-steps\n\n[![No Maintenance Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/)\n\n# This package is deprecated and will not be updated anymore as the Angular team announced that Protractor will be sunsetted at the end of 2022 - https://github.com/angular/protractor/issues/5502. Please consider switching to [testcafe-cucumber-steps](https://github.com/Marketionist/testcafe-cucumber-steps) or [webdriverio-cucumber-steps](https://github.com/Marketionist/webdriverio-cucumber-steps)\n\n[![Build Status](https://travis-ci.org/Marketionist/protractor-cucumber-steps.svg?branch=master)](https://travis-ci.org/Marketionist/protractor-cucumber-steps)\n[![npm version](https://img.shields.io/npm/v/protractor-cucumber-steps.svg)](https://www.npmjs.com/package/protractor-cucumber-steps)\n[![NPM License](https://img.shields.io/npm/l/protractor-cucumber-steps.svg)](https://github.com/Marketionist/protractor-cucumber-steps/blob/master/LICENSE)\n\nCucumber steps (step definitions) written with Protractor for end-to-end tests\n\n## Supported versions\n[Node.js](http://nodejs.org/):\n- 6.x\n- 7.x\n- 8.x\n- 9.x\n- 10.x\n- 11.x\n- 12.x\n- 13.x\n- 14.x\n\n[Protractor](https://www.npmjs.com/package/protractor):\n- 4.x\n- 5.x\n\n[Cucumber](https://www.npmjs.com/package/cucumber):\n- 2.x\n- 3.x\n- 4.x\n- 5.x\n\n## Installation\nTo install this package and add it to your package.json just run:\n```\nnpm install protractor-cucumber-steps --save-dev\n```\n\n## Importing and enabling\nThis package is used as plugin with\n[protractor](https://www.npmjs.com/package/protractor) and\n[protractor-cucumber-framework](https://www.npmjs.com/package/protractor-cucumber-framework).\nIt is quite simple to use - to get access to all Cucumber steps defined in this\nplugin just:\n- add the path to protractor-cucumber-steps in `cucumberOpts: {` `require: ...` inside `protractor.conf.js`;\n- add the path to your page object file in `params: {` `pageObjects: ...` inside `protractor.conf.js`.\n\nHere is a short config example for `protractor.conf.js`:\n\n```javascript\nexports.config = {\n    // set to \"custom\" instead of cucumber\n    framework: 'custom',\n\n    // path relative to the current config file\n    frameworkPath: require.resolve('protractor-cucumber-framework'),\n\n    // require feature files\n    specs: [\n        'path/to/feature/files/**/*.feature' // accepts a glob\n    ],\n\n    cucumberOpts: {\n        // require step definitions\n        require: [\n            './node_modules/protractor-cucumber-steps/index.js', // path to protractor-cucumber-steps\n            'path/to/your/step/definitions/**/*.steps.js' // accepts a glob\n        ]\n    },\n\n    // Custom parameters can be specified here\n    params: {\n        pageObjects: require('./page_objects/index.js') // path to your page object file\n    }\n};\n```\n\nAlso see [enhanced example of `protractor.conf.js`](https://github.com/Marketionist/protractor-cucumber-steps/blob/master/tests/protractor.conf.js)\n\n## List of predefined steps\nYou can see the example of how to use predefined steps in [`test.feature`](https://github.com/Marketionist/protractor-cucumber-steps/blob/master/tests/specs/test.feature)\n\n### When steps\n- `I go to URL \"...\"` - Open a site (by its URL provided in \"\" as a string) in the current browser window/tab\n- `I go to \"...\".\"...\"` - Open a site (by its URL provided in **\"page\".\"object\"**) in the current browser window/tab\n- `I go to ... from ... page` - Open a site (by its URL provided in **object** from **page**) in the current browser window/tab\n- `I reload the page` - Reload current page\n- `I click \"...\".\"...\"` - Click on any element (provided in **\"page\".\"object\"** as CSS or XPath selector)\n- `I click ... from ... page` - Click on any element (provided in **object** from **page** as CSS or XPath selector)\n- `I wait and click \"...\".\"...\"` - Wait for 300 ms and then click on any element (provided in **\"page\".\"object\"** as CSS or XPath selector)\n- `I wait and click ... from ... page` - Wait for 300 ms and then click on any element (provided in **object** from **page** as CSS or XPath selector)\n- `I click \"...\".\"...\" if present` - Click on any element (provided in **\"page\".\"object\"** as CSS or XPath selector) only if it is present on the page\n- `I click ... from page ... if present` - Click on any element (provided in **object** from **page** as CSS or XPath selector) only if it is present on the page\n- `I double click \"...\".\"...\"` - Double click on any element (provided in **\"page\".\"object\"** as CSS or XPath selector)\n- `I double click ... from ... page` - Double click on any element (provided in **object** from **page** as CSS or XPath selector)\n- `I wait for (\\d+) ms` - Wait for provided amount of time (in milliseconds). Maximum value is 300000 (equals to 5 minutes)\n- `I wait for \"...\".\"...\" to be present` - Wait for element (provided in **\"page\".\"object\"** as CSS or XPath selector) to be present on the page (by default waits for 5000 ms, this time can be changed by specifying `params.customTimeout` inside `protractor.conf.js` - see the [example](https://github.com/Marketionist/protractor-cucumber-steps/blob/master/tests/protractor.conf.js))\n- `I wait for ... from ... page to be present` - Wait for element (provided in **object** from **page** as CSS or XPath selector) to be present on the page (by default waits for 5000 ms, this time can be changed by specifying `params.customTimeout` inside `protractor.conf.js` - see the [example](https://github.com/Marketionist/protractor-cucumber-steps/blob/master/tests/protractor.conf.js))\n- `I type \"...\" in \"...\".\"...\"` - Type any text (provided in \"\" as a string) in the input field (provided in **\"page\".\"object\"** as CSS or XPath selector)\n- `I type \"...\" in ... from ... page` - Type any text (provided in \"\" as a string) in the input field (provided in **object** from **page** as CSS or XPath selector)\n- `I type \"...\".\"...\" in \"...\".\"...\"` - Type any text (provided in **\"page1\".\"object1\"**) in the input field (provided in **\"page2\".\"object2\"** as CSS or XPath selector)\n- `I type ... from ... page in ... from ... page` - Type any text (provided in **object1** from **page1**) in the input field (provided in **object2** from **page2** as CSS or XPath selector)\n- `I move to \"...\".\"...\"` - Move the mouse pointer over any element (hover with cursor an element provided in **\"page\".\"object\"** as CSS or XPath selector)\n- `I move to ... from ... page` - Move the mouse pointer over any element (hover with cursor an element provided in **object** from **page** as CSS or XPath selector)\n- `I move to \"...\".\"...\" with an offset of x: (\\d+)px, y: (\\d+)px` - Move the mouse pointer over any element (hover with cursor an element provided in **\"page\".\"object\"** as CSS or XPath selector) with an offset of x: ...px, y: ...px\n- `I move to ... from ... page with an offset of x: (\\d+)px, y: (\\d+)px` - Move the mouse pointer over any element (hover with cursor an element provided in **object** from **page** as CSS or XPath selector) with an offset of x: ...px, y: ...px\n- `I switch to \"...\".\"...\" frame` - Switch the context to iframe (provided in **\"page\".\"object\"** as CSS or XPath selector)\n- `I switch to ... frame from ... page` - Switch the context to iframe (provided in **object** from **page** as CSS or XPath selector)\n- `I switch to \"...\".\"...\" non angular frame` - Switch the context to non angular iframe (provided in **\"page\".\"object\"** as CSS or XPath selector)\n- `I switch to ... non angular frame from ... page` - Switch the context to non angular iframe (provided in **object** from **page** as CSS or XPath selector)\n- `I switch to default frame` - Switch the context back to default (initial) frame\n- `I execute \"...\"` - Execute script (JavaScript code) provided in \"\" as a string\n- `I open new tab` - Open new empty tab (via injecting a link with target=\"_blank\" to the current page and clicking it) and switch the context to this new tab\n- `I close current tab` - Close current tab and switch the context to the last active tab/window\n- `I switch to first tab` - Switch the context to the first tab/window\n- `I switch to last tab` - Switch the context to the last tab/window\n- `I accept browser alert` - Accept (OK) browser alert\n- `I dismiss browser alert` - Dismiss (Cancel) browser alert\n- `I authenticate in browser alert with login \"...\" and password \"...\"` - Authenticate in browser alert with login and password (provided in \"\" as strings)\n\n### Then steps\n- `the title should be \"...\"` - Verify that title of the current browser window/tab equals to the text (provided in \"\" as a string)\n- `\"...\".\"...\" should be present` - Verify that element (provided in **\"page\".\"object\"** as CSS or XPath selector) is present on the page\n- `... from ... page should be present` - Verify that element (provided in **object** from **page** as CSS or XPath selector) is present on the page\n- `\"...\".\"...\" should not be present` - Verify that element (provided in **\"page\".\"object\"** as CSS or XPath selector) is not present on the page\n- `... from ... page should not be present` - Verify that element (provided in **object** from **page** as CSS or XPath selector) is not present on the page\n- `\"...\".\"...\" text should be \"...\"` - Verify that text of the element (provided in **\"page\".\"object\"** as CSS or XPath selector) equals to the text (provided in \"\" as a string)\n- `... text from ... page should be \"...\"` - Verify that text of the element (provided in **object** from **page** as CSS or XPath selector) equals to the text (provided in \"\" as a string)\n- `\"...\".\"...\" text should be \"...\".\"...\"` - Verify that text of the element (provided in **\"page1\".\"object1\"** as CSS or XPath selector) equals to the text (provided in **\"page2\".\"object2\"**)\n- `... text from ... page should be ... from ... page` - Verify that text of the element (provided in **object1** from **page1** as CSS or XPath selector) equals to the text (provided in **object2** from **page2**)\n- `\"...\".\"...\" text should contain \"...\"` - Verify that text of the element (provided in **\"page\".\"object\"** as CSS or XPath selector) contains the text (provided in \"\" as a string)\n- `... text from ... page should contain \"...\"` - Verify that text of the element (provided in **object** from **page** as CSS or XPath selector) contains the text (provided in \"\" as a string)\n- `\"...\".\"...\" text should contain \"...\".\"...\"` - Verify that text of the element (provided in \"page1\".\"object1\" as CSS or XPath selector) contains the text (provided in \"page2\".\"object2\")\n- `URL should be \"...\"` - Verify that URL of the current page equals to the text (provided in \"\" as a string)\n- `URL should match /.../` - Verify that URL of the current page matches the regular expression pattern (provided inside // like: /pattern/)\n- `URL should contain \"...\"` - Verify that URL of the current page contains the text (provided in \"\" as a string)\n- `the file \"...\" is empty` - Verify that the file (with name provided in \"\" as a string) is empty\n\n## How to comment out a line in the feature file\nYou can add comments in `.feature` files using `#` for single line comments.\nMultiline (or block) comments are not supported in Gherkin out of the box (see\nhttps://github.com/cucumber/gherkin/issues/203), so you have to prefix all lines\nwith `#` like this:\n\n```\n# Test single line comment 1\n# Test single line comment 2\nScenario: Commit to open source should be joyful\n  When I commit\n  Then I get a star\n  # And a commented out step\n```\n\n## Contributing\nYou are welcome to contribute to this repository - here is\n[CONTRIBUTING.md](https://github.com/Marketionist/protractor-cucumber-steps/blob/master/CONTRIBUTING.md)\nto help you get started. It is not mandatory, so you can just create a pull\nrequest and we will help you refine it along the way\n\n\n## Thanks\nIf this package was helpful for you, please give it a **★ Star** on\n[GitHub](https://github.com/Marketionist/protractor-cucumber-steps)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarketionist%2Fprotractor-cucumber-steps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarketionist%2Fprotractor-cucumber-steps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarketionist%2Fprotractor-cucumber-steps/lists"}