{"id":19099488,"url":"https://github.com/TheCodeTraveler/AndroidCheckBoxSampleApp","last_synced_at":"2025-09-08T04:31:51.118Z","repository":{"id":68230461,"uuid":"66604468","full_name":"TheCodeTraveler/AndroidCheckBoxSampleApp","owner":"TheCodeTraveler","description":"A simple app to demonstrate how to interact with an Android CheckBox from a UITest","archived":false,"fork":false,"pushed_at":"2020-10-22T22:30:24.000Z","size":66,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-07T04:39:09.809Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/TheCodeTraveler.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-08-26T01:00:51.000Z","updated_at":"2021-02-01T20:15:49.000Z","dependencies_parsed_at":"2023-08-01T05:46:46.895Z","dependency_job_id":null,"html_url":"https://github.com/TheCodeTraveler/AndroidCheckBoxSampleApp","commit_stats":null,"previous_names":["thecodetraveler/androidcheckboxsampleapp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TheCodeTraveler/AndroidCheckBoxSampleApp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeTraveler%2FAndroidCheckBoxSampleApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeTraveler%2FAndroidCheckBoxSampleApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeTraveler%2FAndroidCheckBoxSampleApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeTraveler%2FAndroidCheckBoxSampleApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheCodeTraveler","download_url":"https://codeload.github.com/TheCodeTraveler/AndroidCheckBoxSampleApp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeTraveler%2FAndroidCheckBoxSampleApp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274134647,"owners_count":25228198,"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-08T02:00:09.813Z","response_time":121,"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":[],"created_at":"2024-11-09T03:50:18.786Z","updated_at":"2025-09-08T04:31:51.110Z","avatar_url":"https://github.com/TheCodeTraveler.png","language":"C#","readme":"# AndroidCheckBoxSampleApp\nThis is a simple app to demonstrate how to interact with an Android CheckBox from a UITest.\n\nTo interact with an Android CheckBox from a UITest, you must use the [Invoke](https://docs.microsoft.com/dotnet/api/xamarin.uitest.queries.appquery.invoke?view=xamarin-uitest-sdk\u0026WT.mc_id=mobile-0000-bramin#Xamarin_UITest_Queries_AppQuery_Invoke_System_String_) method to access the methods in the [native Java Android API](https://developer.android.com/reference/android/widget/CheckBox.html). In our `Invoke` statements, we can take advantage of `performClick()` to toggle the CheckBox, `setChecked(boolean checked)` to set the value of the CheckBox, and `isChecked()` to return a bool that is `true` when the CheckBox is checked and `false` when it is unchecked.\n\nIn the UITest project, I created a [ToggleCheckBox](https://github.com/brminnick/AndroidCheckBoxSampleApp/blob/master/CheckBoxSampleApp.UITest/Tests.cs#L128) method to toggle an individual CheckBox, a [IsCheckBoxChecked](https://github.com/brminnick/AndroidCheckBoxSampleApp/blob/master/CheckBoxSampleApp.UITest/Tests.cs#L134) method to return the CheckBox current status, and a [SetCheckBox](https://github.com/brminnick/AndroidCheckBoxSampleApp/blob/master/CheckBoxSampleApp.UITest/Tests.cs#L139) method to set the CheckBox status.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheCodeTraveler%2FAndroidCheckBoxSampleApp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTheCodeTraveler%2FAndroidCheckBoxSampleApp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheCodeTraveler%2FAndroidCheckBoxSampleApp/lists"}