{"id":20420209,"url":"https://github.com/ghoshasish99/testcafe","last_synced_at":"2025-08-09T17:04:08.117Z","repository":{"id":42238697,"uuid":"237486604","full_name":"ghoshasish99/TestCafe","owner":"ghoshasish99","description":"Automated Testing with Testcafe","archived":false,"fork":false,"pushed_at":"2023-01-07T05:22:03.000Z","size":18915,"stargazers_count":1,"open_issues_count":9,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-15T14:35:11.388Z","etag":null,"topics":["javascript","testautomation","testcafe"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghoshasish99.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-31T17:58:44.000Z","updated_at":"2021-07-02T07:38:56.000Z","dependencies_parsed_at":"2023-02-06T12:45:58.351Z","dependency_job_id":null,"html_url":"https://github.com/ghoshasish99/TestCafe","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/ghoshasish99%2FTestCafe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghoshasish99%2FTestCafe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghoshasish99%2FTestCafe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghoshasish99%2FTestCafe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghoshasish99","download_url":"https://codeload.github.com/ghoshasish99/TestCafe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241963342,"owners_count":20049814,"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":["javascript","testautomation","testcafe"],"created_at":"2024-11-15T06:42:03.196Z","updated_at":"2025-03-05T04:26:21.355Z","avatar_url":"https://github.com/ghoshasish99.png","language":"JavaScript","readme":"# TestCafe\n\n[![Build Status](https://dev.azure.com/AutomationsTools/Execution/_apis/build/status/TestCafe?branchName=master)](https://dev.azure.com/AutomationsTools/Execution/_build/latest?definitionId=6\u0026branchName=master)\n\n#### Testcafe is JavaScript based test automation framework. It directly works with the installed browsers hence no drivers are required.\n\n### Getting Started \n* To install testcafe, run this command : `npm install testcafe --save-dev`\n* To install `testcafe-reporter-xunit`, run this command : `npm install testcafe-reporter-xunit --save-dev`\n\nTo execute testcafe tests run this command : `npx testcafe \u003cbrowser_alias\u003e \u003clocation_of_your_tests\u003e`\nSome examples can be found below :\n```powershell \nnpx testcafe chrome mytest.js # For specifying a particular test\nnpx testcafe chrome spec/*.js # For specifying a Glob Pattern\nnpx testcafe chrome:headless spec/*.js # For running tests headless\nnpx testcafe chrome:headless spec/*.js --reporter spec,xunit:report.xml # For specifying reporter type and report location \n```\n\nTestcafe's SelectorFactory `Selector` and TestController `t` can be used to identify elements on a webpage and interact with them.\nSome examples to identify elements are shown below :\n```javascript\nSelector('#email')\nSelector('#password')\nSelector('a').withText(item)\n```\n\nA standard test set up in Testcafe will look like this :\n```javascript\nfixture `Login and Registration` .page `http://awswrkshpalb-1570520390.us-west-2.elb.amazonaws.com:3000/cts-shop/login`\n\n    it('login should fail with invalid credentials', async t =\u003e{ \n       await t\n         .typeText(Selector('#email'),'username')\n         .typeText(Selector('#password'),'password')\n         .click(Selector('form.login \u003e .MuiButtonBase-root \u003e .MuiButton-label'))\n         .expect(Selector('#loginerror').visible).ok()\n    })   \n```\nThe `fixture` and `test` functions are exposed globally.\n\nFor more on Testcafe follow [this link](https://devexpress.github.io/testcafe/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghoshasish99%2Ftestcafe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghoshasish99%2Ftestcafe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghoshasish99%2Ftestcafe/lists"}