{"id":30057105,"url":"https://github.com/zikani03/basi","last_synced_at":"2025-08-07T23:47:33.674Z","repository":{"id":298765463,"uuid":"978537949","full_name":"zikani03/basi","owner":"zikani03","description":"A low-code tool for interacting with Playwright for UI tests and browser automation","archived":false,"fork":false,"pushed_at":"2025-07-31T04:58:46.000Z","size":77,"stargazers_count":4,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-31T05:18:45.310Z","etag":null,"topics":["integration-testing","low-code","pact","playwright","ui-automation"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zikani03.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,"zenodo":null}},"created_at":"2025-05-06T06:22:57.000Z","updated_at":"2025-07-31T02:06:15.000Z","dependencies_parsed_at":"2025-06-12T21:02:07.343Z","dependency_job_id":"5c453b40-5217-45a5-9b62-17800d786d65","html_url":"https://github.com/zikani03/basi","commit_stats":null,"previous_names":["zikani03/pact"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/zikani03/basi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zikani03%2Fbasi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zikani03%2Fbasi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zikani03%2Fbasi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zikani03%2Fbasi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zikani03","download_url":"https://codeload.github.com/zikani03/basi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zikani03%2Fbasi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269343165,"owners_count":24401077,"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-08-07T02:00:09.698Z","response_time":73,"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":["integration-testing","low-code","pact","playwright","ui-automation"],"created_at":"2025-08-07T23:47:30.731Z","updated_at":"2025-08-07T23:47:33.628Z","avatar_url":"https://github.com/zikani03.png","language":"Go","readme":"# basi\n\n`basi` allow users and developers to author and run Playwright actions using a simple\nconfiguration file with less code. Browser automation steps are written in `.basi` files. \n\nThe goal is for the .basi file DSL to be simple enough to hand over to non-technical users.\n\n\u003e NOTE: `basi` is still in very early development. There are no guarantees about API or feature stability.\n\n## Installation \n\nDownload a binary from the [GitHub Releases](https://github.com/zikani03/basi/releases) and place it on your $PATH.\n\n\u003e NOTE: `basi` depends on Playwright and needs to download some\n\u003e browsers and tools if playwright if it is not already installed.\n\u003e You will notice this the first time you run the test/files\n\nIf you want to contribute or build from the source code see the [Building](#building) section\n\nOnce installed you can then run it :\n\n```sh\n$ basi --help\n```\n\n## Example usage\n\nCreate a file named `example-hn.basi` file with the following content:\n\n```\nGoto \"https://news.ycombinator.com/login\"\nFill \"input[name=acct]\" \"throwaway-username\" \nFill \"input[name=pw]\" \"fakepassword\"\nClick \"input[value=login]\"\nScreenshot \"body\" \"./test-screenshot.png\"\n```\n\nYou can now run the file using basi, like so:\n\n```sh \n$ basi run example-hn.basi\n```\n\n**You can use `Find` to select an element to run assertions on it**\n\n```\nGoto \"https://github.com/\"\nFind \"Build and ship software on a single, collaborative platform\"\nExpectId \"hero-section-brand-heading\"\nScreenshot \"body\" \"./data/test-github.png\"\n```\n\n**You can setup metadata/configuration for each run in a `frontmatter` section**\n\n```\nID            : \"A random ID to identify the run\"\nURL           : \"https://nndi.cloud/\"\nTitle         : \"Navigate to home on nndi\"\nHeadless      : \"yes\"\nDescription   : \"Navigates to the NNDI website and clicks the Home link\"\n---\nGoto \"/\"\nClick \"#navbar \u003e ul \u003e li.active \u003e a\"\nExpectAttr \"data-nav-section\" \"home\"\nScreenshot \"body\" \"./test-nndi.png\"\n```\n\n## Available actions\n\n|Action|Arguments|Example|\n|------|---------|-------|\n|Click                 |**querySelector**| Click \"#element\" |\n|DoubleClick           |**querySelector**| DoubleClick \"#element\" |\n|Tap                   |**querySelector**| Tap \"#element\" |\n|Focus                 |**querySelector**| Focus \"#element\" |\n|Blur                  |**querySelector**| Blur \"#element\" |\n|Fill                  |**querySelector** TEXT| Fill \"#element\" \"my input text\" |\n|Find                  |**textContent or querySelector**| Find \"My Account\" |\n|Clear                 |**querySelector**| Clear \"#element\" |\n|Check                 |**querySelector**| Check \"#element\" |\n|Uncheck               |**querySelector**| Uncheck \"#element\" |\n|FillCheckbox          |**querySelector**| FillCheckbox \"#element\" |\n|Press                 |**querySelector** TEXT| Press \"#element\" \"some text\"|\n|PressSequentially     |**querySelector** TEXT | PressSequentially \"#element\" \"some input\"|\n|Type                  |**querySelector** TEXT | Type \"#element\" |\n|Screenshot            |**querySelector** TEXT | Screenshot \"#selector\" \"filename.png\"|\n|Select                |**querySelector** TEXT | Select \"#someSelect\" \"Value or Label\"|\n|SelectOption          |**querySelector** TEXT | Select \"#someSelect\" \"Value or Label\"|\n|SelectMultipleOptions |**querySelector** TEXT | SelectMultipleOptions \"#someSelect\" \"Value or Label 1,Value or Label 2,..., Value or Label N\"|\n|WaitFor               |**querySelector**| WaitFor \"#element\" |\n|WaitForSelector       |**querySelector**| WaitForSelector \"#element\" |\n|Goto                  |**REGEX**| Goto \"^some-page\" |\n|WaitForURL            |**REGEX**| WaitForURL \"^some-page\" |\n|GoBack                |N/A| GoBack |\n|GoForward             |N/A| GoForward |\n|Refresh               |N/A| Refresh |\n\n## Expects\n\n`basi` implements most of [Playwright's Assertions](https://playwright.dev/docs/test-assertions) via Expect actions. The following Expect actions are currently supported\n\n\n|Action|Arguments|Example|\n|------|---------|-------|\n|ExpectText| **argument** | ExpectText \"Click Here\" |\n|ExpectAttr| **attributeName** **argument** | ExpectAttr \"name\" \"some-name\" |\n|ExpectAttribute| **argument** | ExpectAttribute \"name\" \"some-name\" |\n|ExpectValue| **argument** | ExpectValue \"something\" |\n|ExpectValues| **argument** | ExpectValues \"something,something\" |\n|ExpectAttached| None | ExpectAttached  |\n|ExpectChecked| None | ExpectChecked |\n|ExpectDisabled| None ExpectDisabled |\n|ExpectEditable| None | ExpectEditable |\n|ExpectEmpty| None | ExpectEmpty  |\n|ExpectEnabled| None | ExpectEnabled  |\n|ExpectFocused| None | ExpectFocused |\n|ExpectHidden| None| ExpectHidden |\n|ExpectInViewport| None | ExpectInViewport |\n|ExpectVisible| None| ExpectVisible |\n|ExpectToContainClass| **argument** | ExpectToContainClass \"class-name\" |\n|ExpectToContainText| **argument** | ExpectToContainText \"something\" |\n|ExpectAccessibleDescription| **argument** | ExpectAccessibleDescription \"description\"  |\n|ExpectAccessibleErrorMessage| **argument** | ExpectAccessibleErrorMessage \"An error message\" |\n|ExpectAccessibleName| **argument** | ExpectAccessibleName \"An accessible name\" |\n|ExpectClass| **className** | ExpectClass \"a-class-name\" |\n|ExpectCSS| **css-property** **argument** | ExpectCSS \"display\" \"flex\" |\n|ExpectId| **argument** | ExpectId \"an-id\" |\n\n## Building \n\n```sh\n$ git clone https://github.com/zikani03/basi\n\n$ cd basi\n\n$ go build -o basi ./cmd/main.go\n\n$ ./basi --help\n\n# Test with the example file in the repo\n\n$ ./basi run example-hn.basi --url \"https://news.ycombinator.com\"\n```\n\n## LICENSE\n\nApache 2.0 LICENSE","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzikani03%2Fbasi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzikani03%2Fbasi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzikani03%2Fbasi/lists"}