{"id":43494448,"url":"https://github.com/blackboard/protractor-sync","last_synced_at":"2026-02-03T10:33:24.067Z","repository":{"id":65476676,"uuid":"46281480","full_name":"blackboard/protractor-sync","owner":"blackboard","description":"Wrapper around Protractor, providing synchronous test writing and lots of helper functions.","archived":false,"fork":false,"pushed_at":"2020-05-19T00:49:37.000Z","size":413,"stargazers_count":17,"open_issues_count":2,"forks_count":5,"subscribers_count":13,"default_branch":"develop","last_synced_at":"2025-11-27T09:36:26.468Z","etag":null,"topics":["e2e-test","protractor","protractor-sync","selenium","typescript","webdriver"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/blackboard.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}},"created_at":"2015-11-16T14:56:23.000Z","updated_at":"2023-08-22T16:57:32.000Z","dependencies_parsed_at":"2023-01-25T06:25:17.472Z","dependency_job_id":null,"html_url":"https://github.com/blackboard/protractor-sync","commit_stats":null,"previous_names":[],"tags_count":66,"template":false,"template_full_name":null,"purl":"pkg:github/blackboard/protractor-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackboard%2Fprotractor-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackboard%2Fprotractor-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackboard%2Fprotractor-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackboard%2Fprotractor-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blackboard","download_url":"https://codeload.github.com/blackboard/protractor-sync/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackboard%2Fprotractor-sync/sbom","scorecard":{"id":242020,"data":{"date":"2025-08-11","repo":{"name":"github.com/blackboard/protractor-sync","commit":"95ea3bd4393abced4e348c246f3fe017c6f3a967"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5,"checks":[{"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":"Code-Review","score":10,"reason":"all changesets reviewed","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":"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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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 30 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"}}]},"last_synced_at":"2025-08-17T06:49:48.335Z","repository_id":65476676,"created_at":"2025-08-17T06:49:48.335Z","updated_at":"2025-08-17T06:49:48.335Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29041435,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T10:09:22.136Z","status":"ssl_error","status_checked_at":"2026-02-03T10:09:16.814Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["e2e-test","protractor","protractor-sync","selenium","typescript","webdriver"],"created_at":"2026-02-03T10:33:22.504Z","updated_at":"2026-02-03T10:33:24.059Z","avatar_url":"https://github.com/blackboard.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What is this?\n\nProtractor-sync builds on Protractor and provides:\n\n* Synchronous-style test writing (using fibers, behind the scenes) allowing all commands to execute immediately.\n* Polling mechanisms for testing asynchronous apps (polledExpect, elementFinderSync.waitUntil \u0026 .waitUntilRemoved, waitFor)\n* JQuery methods such as `hasClass`, `closest`, and `is`\n* Automatic stale element re-selection (if a stale element is encountered, try to re-select it based on its original selector)\n* Automatic blocked click retrying (if another element would receive the click, keep retrying until timeout expires)\n* Chaining (e.g. `myElement.clear().sendKeys('text')`)\n* Allows 'try/catch' syntax for straightforward error handling\n\n# Installation\n\nPre-reqs:\n\n* Protractor 5.3 or higher (or something like grunt-protractor-runner, which includes it)\n* asyncblock (`npm install asyncblock`)\n* Jasmine (Comes with Protractor. Other frameworks can be used, but some features only work with Jasmine)\n\nInstall: `npm install protractor-sync`\n\n# Example\n\n```\nimport * as ab from 'asyncblock';\nimport { browserSync, configure, elementSync, polledExpect} from '../../app/index';\n\nconfigure({ implicitWaitMs: 500 });\n\nfunction createTest(fn: Function, errorMsg?: string) {\n  return (done: Function) =\u003e {\n    ab(() =\u003e {\n      fn();\n    }, (err: any) =\u003e {\n      if (errorMsg) {\n        expect(err.message).toEqual(errorMsg);\n      } else {\n        expect(err \u0026\u0026 err.stack || err || undefined).toBeUndefined();\n      }\n      done();\n    });\n  };\n}\n\ndescribe('Google Translate', () =\u003e {\n  const googleTranslateUrl = 'https://translate.google.com/';\n\n  it('does not show the clear button when no text exists in the source field', createTest(() =\u003e {\n    browserSync.get(googleTranslateUrl);\n\n    const rootElement = elementSync.findVisible('#gt-src-c');\n    polledExpect(() =\u003e rootElement.findElement('.clear-button').isDisplayed()).toEqual(false);\n  }));\n\n  it('does show the clear button after entering text in the source field', createTest(() =\u003e {\n    browserSync.get(googleTranslateUrl);\n\n    const rootElement = elementSync.findVisible('#gt-src-c');\n    rootElement.findVisible('textarea#source').clear().sendKeys('12345');\n    polledExpect(() =\u003e rootElement.findElement('.clear-button').isDisplayed()).toEqual(true);\n  }));\n});\n```\n\nSee test/spec/protractor-sync_test.ts for more examples.\n\n# How to contribute\n \nThanks you for your interest in Protractor-sync.  In lieu of a formal style guide, take care to maintain the existing coding style. Please add tests for any new or changed functionality.\n\n# API\n\nSee [API.md](API.md)\n\n# Tips\n\n* Do not set an implicit wait in Protractor/selenium. Set an implicit wait time using protractorSync.configure instead.\n* Turn off Protractor synchronization (`browserSync.getBrowser().waitForAngularEnabled(false);`) for faster tests. You can also enable/disable it during portions of tests.\n* Always use `findVisible`, except for special situations where you want to select a hidden element.\n* If you must manually pass a waitTimeMS, set it as a multiple of the implicitWaitTimeMs so it will scale on slower machines.\n\n# Build tasks\n\n* `npm start` - Builds the code and watches for changes\n* `npm test` - Builds the code, runs the linter, updates Webdriver if needed, and runs the test suite\n* `npm publish` - Publish a new version to NPM\n\nThis project will automatically build, lint and test when pushing code to a remote repository.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackboard%2Fprotractor-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblackboard%2Fprotractor-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackboard%2Fprotractor-sync/lists"}