{"id":15288943,"url":"https://github.com/britishgas-engineering/ya-done","last_synced_at":"2026-02-18T02:35:50.149Z","repository":{"id":13182518,"uuid":"73817387","full_name":"britishgas-engineering/ya-done","owner":"britishgas-engineering","description":"Ready to use yadda - selenium-webdriver - chai framework","archived":false,"fork":false,"pushed_at":"2023-09-04T10:26:47.000Z","size":1041,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-19T21:42:09.954Z","etag":null,"topics":["automation-framework","bdd","browserstack","chai","chromedriver","phantomjs","selenium-webdriver","yadda"],"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/britishgas-engineering.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2016-11-15T13:43:08.000Z","updated_at":"2021-10-27T15:04:38.000Z","dependencies_parsed_at":"2024-10-27T19:14:44.665Z","dependency_job_id":"fe4b8c71-b357-4709-9d5e-212ad3341e01","html_url":"https://github.com/britishgas-engineering/ya-done","commit_stats":{"total_commits":156,"total_committers":15,"mean_commits":10.4,"dds":0.5576923076923077,"last_synced_commit":"7a129386ebae5c4bd17ef544242c22cdee885c5e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/britishgas-engineering/ya-done","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/britishgas-engineering%2Fya-done","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/britishgas-engineering%2Fya-done/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/britishgas-engineering%2Fya-done/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/britishgas-engineering%2Fya-done/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/britishgas-engineering","download_url":"https://codeload.github.com/britishgas-engineering/ya-done/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/britishgas-engineering%2Fya-done/sbom","scorecard":{"id":254123,"data":{"date":"2025-08-11","repo":{"name":"github.com/britishgas-engineering/ya-done","commit":"e9caf96e7c558506ed9cb39dfc22c6cd5ab45010"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Code-Review","score":8,"reason":"Found 8/9 approved changesets -- score normalized to 8","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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/node.js.yml:1","Info: no jobLevel write permissions found"],"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/britishgas-engineering/ya-done/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/britishgas-engineering/ya-done/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/britishgas-engineering/ya-done/node.js.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/node.js.yml:33","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"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":"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":"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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 29 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":"17 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-8hc4-vh64-cxmj","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-hm92-vgmw-qfmx","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-qrpm-p2h7-hrv2","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6"],"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-17T09:11:29.983Z","repository_id":13182518,"created_at":"2025-08-17T09:11:29.983Z","updated_at":"2025-08-17T09:11:29.983Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29566407,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T00:47:08.760Z","status":"online","status_checked_at":"2026-02-18T02:00:09.468Z","response_time":162,"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":["automation-framework","bdd","browserstack","chai","chromedriver","phantomjs","selenium-webdriver","yadda"],"created_at":"2024-09-30T15:54:44.136Z","updated_at":"2026-02-18T02:35:50.130Z","avatar_url":"https://github.com/britishgas-engineering.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# ya-done\n\n**Ready to use yadda BBD test framework with selenium-webdriver and chai**\n\n![](https://github.com/britishgas-engineering/ya-done/workflows/Node.js%20CI/badge.svg?branch=master)\n\n```js\n\nnpm  i  ya-done --save\n\n```\n\nThe aim of this package is to build a simple configuration for 'yadda' to enable QA test engineers to productively build test projects for web projects using JavaScript.\n\nya-done configures 'yadda' with chai with 'selenium-webdriver'. 'yadda' has been created with two context properties. 'selenium-webdriver' can be accessed via the property 'driver'. Additionally a property of 'ctx', type object, has been added to allow the passing of data between steps.\n\nya-done allows testing with the following devices or technologies:\n\n* Chromedriver\n* Geckodriver\n* Continuous Testing (Browserstack, Perfecto, etc)\n* Appium\n\nPlease check the configuration to launch Chrome and FireFox in Local environment\n\n### Technologies Used\n\n* Pre-configured _[yadda](https://github.com/acuminous/yadda)_\n* Pre-configured _[chai-webdriver](http://chaijs.com/plugins/chai-webdriver) -\u003e _**DEPRECATED FROM Ya-done 2.1.0**_\n\nBelow are some Continuous Testing providers which have been used with ya-done\n* _[BrowserStack](https://www.browserstack.com)_\n* _[Perfecto](https://www.perfecto.io/)_\n\n### Default steps\n\nya-done has preconfigured \"set-up\" and \"tear down\" steps.\n\n*  **a web browser**  _(sets window size, solves lots of webdriver common problems)_\n*  **end the test**  _(calls quit on webdriver, only to be used on last scenario in the last feature file)_\n\nThese steps are added to the yadda library by default and are used in the example project and seen below.\n\nya-done exposes \"yaddaCore\" which requires a step library to run\n\n### Configuration _(standard)_\n\nThe web-browser to be used for testing can be defined by either a string or configuration object.\n\nWhen using a configuration object the window size can also be set. Capabiltiies can also be set depending on the chosen browser as highlighted below.\n\n***Chrome Browser***\n\n```js\n\nimport { yaddaCore } from  'ya-done';\nimport  steps  from  './steps';\n\n/* configure */\nyaddaCore(steps, {\n  useBrowser:  true,\n  capabilities: {\n    browserName:  'chrome',\n    args: [\n    '--disable-background-networking',\n    '--disable-background-timer-throttling',\n    '--disable-client-side-phishing-detection',\n    '--disable-default-apps',\n    '--disable-hang-monitor',\n    '--disable-popup-blocking',\n    '--disable-prompt-on-repost',\n    '--disable-sync',\n    '--metrics-recording-only',\n    '--no-first-run',\n    '--safebrowsing-disable-auto-update',\n    '--enable-automation',\n    '--password-store=basic',\n    '--use-mock-keychain',\n    '--user-data',\n    '--hide-scrollbars',\n    '--mute-audio',\n    '--disable-setuid-sandbox',\n    \"--disable-dev-shm-usage\",\n    \"--disable-gpu\",\n    \"--no-default-browser-check\",\n    \"--disable-extensions\",\n    \"--disable-translate\",\n    \"--disable-logging\",\n    \"--headless\",\n    \"--no-sandbox\",\n    \"--remote-debugging-port=0\",\n    \"--window-size=1440,900\",\n    \"--disable-web-security\",\n    \"--disable-renderer-backgrounding\",\n    \"--disable-background-timer-throttling\"\n    ]\n  }\n});\n```\n\n***FireFox Browser***\n\n```js\n\nimport { yaddaCore } from  'ya-done';\nimport  steps  from  './steps';\n\n/* configure */\nyaddaCore(steps, {\nuseBrowser:  true,\ncapabilities: {\n  browserName:  'chrome',\n  \"alwaysMatch\": {\n        \"moz:firefoxOptions\": {\n        \"args\": [\n        '--disable-background-networking',\n        '--disable-background-timer-throttling',\n        '--disable-client-side-phishing-detection',\n        '--disable-default-apps',\n        '--disable-hang-monitor',\n        '--disable-popup-blocking',\n        '--disable-prompt-on-repost',\n        '--disable-sync',\n        '--metrics-recording-only',\n        '--no-first-run',\n        '--safebrowsing-disable-auto-update',\n        '--enable-automation',\n        '--password-store=basic',\n        '--use-mock-keychain',\n        '--user-data',\n        '--hide-scrollbars',\n        '--mute-audio',\n        '--disable-setuid-sandbox',\n        \"--disable-dev-shm-usage\",\n        \"--disable-gpu\",\n        \"--no-default-browser-check\",\n        \"--disable-extensions\",\n        \"--disable-translate\",\n        \"--disable-logging\",\n        \"--headless\",\n        \"--no-sandbox\",\n        \"--remote-debugging-port=0\",\n        \"--window-size=1440,900\",\n        \"--disable-web-security\",\n        \"--disable-renderer-backgrounding\",\n        \"--disable-background-timer-throttling\"\n        ]\n      }\n    }\n  }\n});\n```\n\n### Configuration _(Continuous Testing)_\n\nFor any continuous product, add a configuration object as the second parameter in yaddaCore.\n\n **From version 1.5.0**\n\nServer must now be specified in yaddaCore when using any provider e.g. Browserstack, Perfecto. This removes the restriction of only being able to use Browserstack for continuous testing.\n\n- [Documentation for setting up the configuration object in Browserstack.](https://www.browserstack.com/automate/node)\n\n- [Documentation for setting up the configuration object in Perfecto.](https://developers.perfectomobile.com/display/PD/Automating+Web-apps+with+Perfecto)\n\n```js\nimport { yaddaCore } from  'ya-done';\nimport  steps  from  './steps';\n\n/* Browserstack */\nyaddaCore(steps, {\n  server: 'http://hub-cloud.browserstack.com/wd/hub',\n  capabilities: {\n    browserName: 'Chrome', // other browsers available\n    browser_version: '85', // if we don't pass it will pick latest\n    os: 'Windows',\n    os_version: '8',\n    resolution: '1024x768',\n    'browserstack.user': ${ your_id },\n  'browserstack.key': ${ your_pass },\n  },\n  });\n\n  /* Perfecto */\n  yaddaCore(steps, {\n  server: 'https://INSERT_PERFECTO_HOST_HERE/nexperience/perfectomobile/wd/hub/fast',\n  capabilities: {\n      platformName: 'Windows',\n      platformVersion: '10',\n      browserName: 'Chrome',\n      browserVersion: '85',\n      resolution: '1280x1024',\n    securityToken: 'INSERT_SECURITY_TOKEN'\n  },\n  });\n\n```\n\n### Configuration _(mobile)_\n\nFor mobile add `useMobile: true` into your yaddaCore configuration as highlighted below.\n\nAll what is required to run on mobile are the below technologies:\n\n* [Appium](http://appium.io/)\n* [XCode](https://developer.apple.com/xcode/) - _Only available on Apple Devices_\n* [Android Studio](https://developer.android.com/studio)\n\n```js\n\nimport { yaddaCore } from  'ya-done';\nimport  steps  from  './steps';\n\n/* configuration for iPhone */\n  yaddaCore(steps, {\n    useMobile: true,\n    capabilities: {\n      platformName: 'iOS',\n      deviceName: 'iPhone X',\n      browserName: 'Safari',\n      automationName: 'XCUITest',\n      platformVersion: '12.2'\n    }\n  });\n  /* configuration for Android */\n  yaddaCore(steps, {\n    useMobile: true,\n    capabilities: {\n      platformName: 'Android',\n      deviceName: 'Samsung Galaxy S7 API Q',\n      browserName: 'Chrome',\n      automationName: 'uiautomator2',\n      platformVersion: 'Q'\n    }\n  });\n\n```\n\n### Execution Style:\n\nWe have added a new property **stepLevel** which can be sent as a part of yaddaCore to trigger the test cases in the step level or Scenario Level.\n\n```js\nstepLevel:true --\u003e will run the tests and will display each individual step used by that test.\n```\n\n```js\nstepLevel:false --\u003e will run the tests at scenario level.  \n```\n**Config Example**\n```js\nyaddaCore(allSteps, {\n  useBrowser: true,\n  stepLevel: true,\n  capabilities: {\n    browserName: 'chrome',\n    args\n  }\n});\n\n```\n### Adding a dictionary\n\nDictionaries have been abstracted for simple use in ya-done. Dictionaries allow the use of [tables](https://acuminous.gitbooks.io/yadda-user-guide/en/feature-specs/example-tables.html) and [variables within steps](https://acuminous.gitbooks.io/yadda-user-guide/en/usage/step-libraries.html#step-aliases).\n\nPass in an array of objects to the `yaddaLibrary`. Objects need to have a `name` property and a `type` property. The name will equal the variable name to be used in the table and step. The type must be one of the 3 dictionaryTypes in ya-done. (String types are supported in yadda by default and require no dictionary configuration, a string variable will require step configuration though).\n\n-  `dictionaryTypes.TYPE_JSON`\n\n-  `dictionaryTypes.TYPE_INTEGER`\n\n-  `dictionaryTypes.TYPE_FLOAT`\n\n**Example Dictionary**\n\n```js\nimport { dictionaryTypes } from  'ya-done';\n\n// define a dictionary\nconst  dictionary = [\n  {\n  name:  'dataObject',\n  type:  dictionaryTypes.TYPE_JSON,\n\n  },{\n\n  name:  'smallNumber'\n  type: dictionaryTypes.TYPE_INTEGER,\n\n  },{\n\n  name:  'bigNumber'\n  type: dictionaryTypes.TYPE_FLOAT,\n\n  }\n];\n```\n\n### Example use\n\nUsing the example project provided.\n\n**sample project structure**\n\n```\n│ index.js\n└───steps\n\n│ │ index.js\n\n└───features\n\n│ hello.feature\n```\n\n**index.js (project level)**\n\n```js\n\nimport { yaddaCore } from  'ya-done';\nyaddaCore(steps, {\nuseBrowser:  true,\ncapabilities: {\nbrowserName:  'chrome',\nargs: [\n'--disable-background-networking',\n'--disable-background-timer-throttling',\n'--disable-client-side-phishing-detection',\n'--disable-default-apps',\n'--disable-hang-monitor',\n'--disable-popup-blocking',\n'--disable-prompt-on-repost',\n'--disable-sync',\n'--metrics-recording-only',\n'--no-first-run',\n'--safebrowsing-disable-auto-update',\n'--enable-automation',\n'--password-store=basic',\n'--use-mock-keychain',\n'--user-data',\n'--hide-scrollbars',\n'--mute-audio',\n'--disable-setuid-sandbox',\n\"--disable-dev-shm-usage\",\n\"--disable-gpu\",\n\"--no-default-browser-check\",\n\"--disable-extensions\",\n\"--disable-translate\",\n\"--disable-logging\",\n\"--headless\",\n\"--no-sandbox\",\n\"--remote-debugging-port=0\",\n\"--window-size=1440,900\",\n\"--disable-web-security\",\n\"--disable-renderer-backgrounding\",\n\"--disable-background-timer-throttling\"\n]\n}\n});\n\n```\n\n**hello.feature**\n```feature\n\nFeature: ya-done example\n\nScenario: webdriver is simple with ya-done\nGiven a web browser\nWhen the browser navigates to github\nThen the headers should not be hello world\nAnd end the test will quit the driver\n\nWhere:\n--------------------------------------------------------------------\n| dataObject | smallNumber | bigNumber |\n| [{\"stuff\": true, \"otherStuff\": true}] | 1 | 11.00 |\n--------------------------------------------------------------------\n```\n\n**index.js**\n\n```js\nimport { yaddaCore, yaddaLibrary, dictionaryTypes } from  'ya-done';\n\n// define a dictionary\n\nconst  dictionary = [\n  {\n  name:  'dataObject',\n  type:  dictionaryTypes.TYPE_JSON,\n  },\n  {\n  name:  'smallNumber'\n  type: dictionaryTypes.TYPE_INTEGER,\n  },\n  {\n  name:  'bigNumber'\n  type: dictionaryTypes.TYPE_FLOAT,\n  }\n];\n\nyaddaCore(() =\u003e\n  yaddaLibrary(dictionary)\n  .when('the browser navigates to github', function  loadGithub(next) {\n  this.driver.get('http://github.com');\n  next();\n  })\n  .then('the headers should not be hello world', next  =\u003e {\n  expect('#site-container h1.heading').dom.to.not.contain.text('hello world');\n  next();\n  })\n);\n```\n\n**install and run the project**\n\n```js\nnpm  i\nnpm  test\n```\n\n**how to consume reading scenario count from feature files**\n\nIn local index.js:\n-  import the count scenarios function --\u003e\n```js\nimport {countScenarios} from 'ya-done';\n```\n-  countScenarios(**filePath**)  (Where file path is where your feature files are stored)\n\n**how to consume the common selenium Functions**\n-  import the utils from ya-done \n```js\nimport { utils } from 'ya-done';\n```\n##### Available Functions: \n\n- findElement\n- waitForElement\n- waitForElements\n- getTextOfElement\n- getAttribute\n- clickElement\n- getCurrentUrl\n- findElements\n- waitForPageLoad\n- waitOneSec\n- enterValue\n- scrollInto\n- isElementPresent\n- dropdownSelectByVisibleText\n- isElementVisible\n- clickShadowRootElement\n- getInnerTextOfShadowRootElement\n- clickShadowRootElementByCssSelector\n- getInnerTextShadowRootElementByCssSelector\n- performJqueryAction\n- enterValuesForShadowRootElement\n- getLengthForShadowRootElement\n- generateNumbers\n\n\u003e To Use these functions the QA team needs to store their webElements in the below fashion, and pass in the function\n\n**e.g.:**\n```js\nconst elementOne = {\n  locator : '.classname .otherClasses',\n  locatorType: 'css'\n}\n\nconst elementTwo = {\n  locator : '//div[@name='test'],\n  locatorType: 'xpath'\n}\n```\n\nThen call the function like \n\n```js\nimport { utils } from 'ya-done'\nawait utils.clickElement.call(this, elementOne);\nawait utils.getTextOfElement.call(this, elementTwo);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbritishgas-engineering%2Fya-done","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbritishgas-engineering%2Fya-done","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbritishgas-engineering%2Fya-done/lists"}