{"id":19283049,"url":"https://github.com/vikashchauhan51/appiumcore","last_synced_at":"2025-04-12T00:13:18.832Z","repository":{"id":116103472,"uuid":"309961374","full_name":"VikashChauhan51/AppiumCore","owner":"VikashChauhan51","description":"test cross platform mobile application with Appium C#","archived":false,"fork":false,"pushed_at":"2025-01-25T03:46:36.000Z","size":70,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T00:13:12.138Z","etag":null,"topics":["appium","appium-android","appium-ios","cross-platform","cross-platform-testing","csharp","mobile"],"latest_commit_sha":null,"homepage":"","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/VikashChauhan51.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":"2020-11-04T09:53:23.000Z","updated_at":"2025-01-25T03:46:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"51feed5e-26c2-41ff-a35d-3ec606676486","html_url":"https://github.com/VikashChauhan51/AppiumCore","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VikashChauhan51%2FAppiumCore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VikashChauhan51%2FAppiumCore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VikashChauhan51%2FAppiumCore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VikashChauhan51%2FAppiumCore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VikashChauhan51","download_url":"https://codeload.github.com/VikashChauhan51/AppiumCore/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248497820,"owners_count":21113984,"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":["appium","appium-android","appium-ios","cross-platform","cross-platform-testing","csharp","mobile"],"created_at":"2024-11-09T21:29:32.800Z","updated_at":"2025-04-12T00:13:18.825Z","avatar_url":"https://github.com/VikashChauhan51.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AppiumCore\n\n![Appium](appium-logo-horiz.png)\n\n![AppiumCore](icon.png)\n\nThis is a [Appium](https://appium.io/docs/en/latest/) client wrapper to test cross platform mobile application with same code base using C#.\n\n[![NuGet Version](https://img.shields.io/nuget/v/AppiumCore.svg?style=flat-square)](https://www.nuget.org/packages/AppiumCore/)\n[![NuGet Downloads](https://img.shields.io/nuget/dt/AppiumCore.svg?style=flat-square)](https://www.nuget.org/packages/AppiumCore/)\n[![Build Status](https://github.com/VikashChauhan51/AppiumCore/actions/workflows/build.yml/badge.svg)](https://github.com/VikashChauhan51/AppiumCore/actions)\n[![License](https://img.shields.io/github/license/VikashChauhan51/AppiumCore.svg?style=flat-square)](https://github.com/VikashChauhan51/AppiumCore/blob/main/LICENSE)\n\n  ## Installation\n\nYou can install the AppiumCore package via NuGet:\n\n```shell\ndotnet add package AppiumCore\n```\n\nOr you can use the NuGet Package Manager:\n\n```shell\nInstall-Package AppiumCore\n```\n\n## Quick Start Example (Nunit Framework):\n\n```C#\n\nusing NUnit.Framework;\nusing OpenQA.Selenium.Appium;\nusing OpenQA.Selenium.Appium.Service;\nusing AppiumCore;\n\n[TestFixture(Platform.iOS)]\n[TestFixture(Platform.Android)]\npublic class AppSetupTest\n{\n    private readonly IApp app;\n    public AppSetupTest(Platform platform)\n    {\n        switch (platform)\n        {\n            case Platform.Android:\n                // update `AppiumOptions` and `AppiumLocalService` as per you requirment.\n                app = ConfigureApp.Android.StartApp(new AppiumOptions(), AppiumLocalService.BuildDefaultService());\n                break;\n            case Platform.iOS:\n                // update `AppiumOptions` and `AppiumLocalService` as per you requirment.\n                app = ConfigureApp.iOS.StartApp(new AppiumOptions(), AppiumLocalService.BuildDefaultService());\n                break;\n            default:\n                break;\n        }\n\n\n    }\n\n   [Test]\n    public void SampleTest()\n    {\n        app.FindElement(By.Id(\"app\")).Click();\n        Assert.Pass();\n    }\n}\n\n```\n\n*Here `SampleTest()` will execute on both `iOS` and `Android`, and `app.FindElement(By.Id(\"app\")).Click()` will internally switch to the respective driver as we configured at startup.*\n\nThis will reduce your codebase size and maintenance cost. 😊\n\n\nWe have three interfaces: `IApp`, `IAndroidApp`, and `IIOSApp`. The `IApp` interface provides common APIs available in the Appium driver for both platforms, and the platform-specific interfaces provide complete platform-specific APIs available in the respective platform-specific drivers.\n\n\nPlease use `AppiumLocalService` at startup if your mobile app is hybrid, where the application redirects to a web browser for functionalities like signup/sign-in. In this case, the app will switch from Native view to Web view. We have also added an additional APIs(`SwitchToWebView()` and `SwitchToNativeApp()`) to handle this in your script before calling any action method of the APIs. For documentation, please refer to their official documentation, as linked below.\n\n\n## Reference\n- Inspired from [Xamarin.UITest](https://learn.microsoft.com/en-us/appcenter/test-cloud/frameworks/uitest/).\n- [Appium Dotnet](https://appium.io/docs/en/latest/quickstart/test-dotnet/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikashchauhan51%2Fappiumcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvikashchauhan51%2Fappiumcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikashchauhan51%2Fappiumcore/lists"}